mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	spi: jcore: Fix trailing statements should be on next line
Fix checkpatch error: ERROR: trailing statements should be on next line #85: FILE: spi-jcore.c:85: + if (speed == hw->speed_hz) return; Signed-off-by: Jay Fang <f.fangjian@huawei.com> Link: https://lore.kernel.org/r/1616566602-13894-9-git-send-email-f.fangjian@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
		
							parent
							
								
									f96c19fab3
								
							
						
					
					
						commit
						45793de7bf
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -82,7 +82,8 @@ static void jcore_spi_chipsel(struct spi_device *spi, bool value)
 | 
			
		|||
 | 
			
		||||
static void jcore_spi_baudrate(struct jcore_spi *hw, int speed)
 | 
			
		||||
{
 | 
			
		||||
	if (speed == hw->speed_hz) return;
 | 
			
		||||
	if (speed == hw->speed_hz)
 | 
			
		||||
		return;
 | 
			
		||||
	hw->speed_hz = speed;
 | 
			
		||||
	if (speed >= hw->clock_freq / 2)
 | 
			
		||||
		hw->speed_reg = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue