aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-test.c
diff options
context:
space:
mode:
authorAlexandre Belloni <[email protected]>2019-03-20 12:03:12 +0000
committerAlexandre Belloni <[email protected]>2019-04-04 08:07:08 +0000
commit540a11d8bd00a89222220efcaa2f33fcbc68404f (patch)
treeb21b04d37a776dbcf742bb1abb9c1b15f29b67e9 /drivers/rtc/rtc-test.c
parentrtc: 88pm80x: convert to SPDX identifier (diff)
downloadkernel-540a11d8bd00a89222220efcaa2f33fcbc68404f.tar.gz
kernel-540a11d8bd00a89222220efcaa2f33fcbc68404f.zip
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 <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-test.c')
-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;