mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:41:02 +07:00
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:
parent
b0576f9ecb
commit
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user