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>
This commit is contained in:
Alexandre Belloni 2019-03-20 13:03:12 +01:00
parent 8bc9630ad1
commit 540a11d8bd
1 changed files with 2 additions and 1 deletions

View File

@ -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;