Commit 540a11d8 authored by Alexandre Belloni's avatar Alexandre Belloni

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: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 8bc9630a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment