scsi: qla2xxx: simplify conditional
Subsystems (2)
PATCH 1/1 scsi: qla2xxx: simplify conditional
From: Yushan Zhou <[email protected]>
Fix the following coccicheck warning:
./drivers/scsi/qla2xxx/qla_target.c:1031:20-22: WARNING !A || A && B is equivalent to !A || B
Signed-off-by Yushan Zhou <[email protected]>
--- drivers/scsi/qla2xxx/qla_target.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_target.c +1 -2
@@ -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,
Signature · 1 line
2.27.0