Skip to content

Commit

Permalink
bsr: do not use assignment in if condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Naveen Kumar Parna authored and Greg Kroah-Hartman committed May 24, 2019
1 parent b0576f9 commit 7256d7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/char/bsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7256d7f

Please sign in to comment.