diff mbox series

scsi: qla2xxx: Simplify condition check in qlt_free_session_done

Message ID 20221121110915.3450528-1-liaoyu15@huawei.com (mailing list archive)
State New, archived
Headers show
Series scsi: qla2xxx: Simplify condition check in qlt_free_session_done | expand

Commit Message

Yu Liao Nov. 21, 2022, 11:09 a.m. UTC
!A || (A && B) is equivalent to !A || B. Hence, simplify condition.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
---
 drivers/scsi/qla2xxx/qla_target.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index bb754a950802..1e3e38d35968 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -1028,8 +1028,7 @@  void qlt_free_session_done(struct work_struct *work)
 		}
 
 		if (ha->flags.edif_enabled &&
-		    (!own || (own &&
-			      own->iocb.u.isp24.status_subcode == ELS_PLOGI))) {
+		    (!own || own->iocb.u.isp24.status_subcode == ELS_PLOGI)) {
 			sess->edif.authok = 0;
 			if (!ha->flags.host_shutting_down) {
 				ql_dbg(ql_dbg_edif, vha, 0x911e,