scsi: megaraid: Fix Coccinelle warning
authorjing yangyang <jing.yangyang@zte.com.cn>
Fri, 20 Aug 2021 03:08:05 +0000 (20:08 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Sep 2021 02:15:48 +0000 (22:15 -0400)
commit17dfd54d391ea9f8d136fb137962987cb2c6444c
tree2cd67b8478c8bbc47af7ba4f554a4e7ebd9263cd
parent1f97c29beee774e407839768439b7f51831c3ea1
scsi: megaraid: Fix Coccinelle warning

WARNING !A || A && B is equivalent to !A || B

This issue was detected with the help of Coccinelle.

Link: https://lore.kernel.org/r/20210820030805.12383-1-jing.yangyang@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c