summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-20 15:03:12 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 11:07:08 +0300
commit540a11d8bd00a89222220efcaa2f33fcbc68404f (patch)
treeb21b04d37a776dbcf742bb1abb9c1b15f29b67e9 /drivers
parent8bc9630ad1ae6e38e0568c7ec27e4a9a45427c11 (diff)
downloadlinux-540a11d8bd00a89222220efcaa2f33fcbc68404f.tar.xz
rtc: test: do not use assignment in if condition
Fix checkpatch error: drivers/rtc/rtc-test.c:155: ERROR: do not use assignment in if condition Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c
index 6c5f09c815e8..f1a6dc5ad013 100644
--- a/drivers/rtc/rtc-test.c
+++ b/drivers/rtc/rtc-test.c
@@ -152,7 +152,8 @@ static int __init test_init(void)
{
int i, err;
- if ((err = platform_driver_register(&test_driver)))
+ err = platform_driver_register(&test_driver);
+ if (err)
return err;
err = -ENOMEM;