diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-20 13:03:12 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-04 10:07:08 +0200 |
commit | 540a11d8bd00a89222220efcaa2f33fcbc68404f (patch) | |
tree | b21b04d37a776dbcf742bb1abb9c1b15f29b67e9 | |
parent | 8bc9630ad1ae6e38e0568c7ec27e4a9a45427c11 (diff) | |
download | linux-540a11d8bd00a89222220efcaa2f33fcbc68404f.tar.gz linux-540a11d8bd00a89222220efcaa2f33fcbc68404f.tar.bz2 linux-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 <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-test.c | 3 |
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; |