summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-jcore.c
diff options
context:
space:
mode:
authorJay Fang <f.fangjian@huawei.com>2021-03-24 14:16:39 +0800
committerMark Brown <broonie@kernel.org>2021-03-24 19:51:09 +0000
commit45793de7bf89fbd0fd1e2db9dda4e58a9c1395ee (patch)
treee699033d9be3fa715738a6de0a609582e6e578c1 /drivers/spi/spi-jcore.c
parentf96c19fab393db16a2db78183ca8f584ee1b716a (diff)
downloadlinux-45793de7bf89fbd0fd1e2db9dda4e58a9c1395ee.tar.gz
linux-45793de7bf89fbd0fd1e2db9dda4e58a9c1395ee.tar.bz2
linux-45793de7bf89fbd0fd1e2db9dda4e58a9c1395ee.zip
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>
Diffstat (limited to 'drivers/spi/spi-jcore.c')
-rw-r--r--drivers/spi/spi-jcore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-jcore.c b/drivers/spi/spi-jcore.c
index bba10f030e33..74c8319c29f1 100644
--- a/drivers/spi/spi-jcore.c
+++ b/drivers/spi/spi-jcore.c
@@ -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;