Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jay Fang and committed by
Mark Brown
45793de7 f96c19fa

+2 -1
+2 -1
drivers/spi/spi-jcore.c
··· 82 82 83 83 static void jcore_spi_baudrate(struct jcore_spi *hw, int speed) 84 84 { 85 - if (speed == hw->speed_hz) return; 85 + if (speed == hw->speed_hz) 86 + return; 86 87 hw->speed_hz = speed; 87 88 if (speed >= hw->clock_freq / 2) 88 89 hw->speed_reg = 0;