bsr: do not use assignment in if condition
checkpatch.pl does not like assignment in if condition Signed-off-by: Naveen Kumar Parna <parna.naveenkumar@gmail.com> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
b0576f9ecb
Коммит
7256d7f401
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче