scsi: qla2xxx: Simplify if condition evaluation
authorDeepak R Varma <drv@mailo.com>
Thu, 12 Jan 2023 06:26:46 +0000 (11:56 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Jan 2023 02:18:16 +0000 (21:18 -0500)
commit5a5ef64f28edda2d62109e9dfc87a9212f06bf5b
treeac095e499270a7a564ffa8151724ace243a1804c
parent4fd62973739de61cf4c83b960db7d1824bd854a3
scsi: qla2xxx: Simplify if condition evaluation

A logical evaluation of type (!A || A && B) can be simplified as (!A || B).
Improvement by suggested by excluded_middle.cocci Coccinelel semantic
patch.

Link: https://lore.kernel.org/r/Y7+oJuah0MgEW0PQ@ubun2204.myguest.virtualbox.org
Signed-off-by: Deepak R Varma <drv@mailo.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c