Commit 960204ec authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Martin K. Petersen

scsi: qla2xxx: Simplify if statement

Fix the following coccicheck warnings:

./drivers/scsi/qla2xxx/qla_target.c:984:12-14: WARNING !A || A && B is
equivalent to !A || B.

Link: https://lore.kernel.org/r/1612319190-111421-1-git-send-email-jiapeng.chong@linux.alibaba.comReported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 762a8ea5
...@@ -981,8 +981,7 @@ void qlt_free_session_done(struct work_struct *work) ...@@ -981,8 +981,7 @@ void qlt_free_session_done(struct work_struct *work)
int rc; int rc;
if (!own || if (!own ||
(own && (own->iocb.u.isp24.status_subcode == ELS_PLOGI)) {
(own->iocb.u.isp24.status_subcode == ELS_PLOGI))) {
rc = qla2x00_post_async_logout_work(vha, sess, rc = qla2x00_post_async_logout_work(vha, sess,
NULL); NULL);
if (rc != QLA_SUCCESS) if (rc != QLA_SUCCESS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment