mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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.com Reported-by: Abaci Robot <abaci@linux.alibaba.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
762a8ea515
commit
960204ecca
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue