Commit 7256d7f4 authored by Naveen Kumar Parna's avatar Naveen Kumar Parna Committed by Greg Kroah-Hartman

bsr: do not use assignment in if condition

checkpatch.pl does not like assignment in if condition
Signed-off-by: default avatarNaveen Kumar Parna <parna.naveenkumar@gmail.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0576f9e
......@@ -322,7 +322,8 @@ static int __init bsr_init(void)
goto out_err_2;
}
if ((ret = bsr_create_devs(np)) < 0) {
ret = bsr_create_devs(np);
if (ret < 0) {
np = NULL;
goto out_err_3;
}
......
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