[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1612424125-91111-1-git-send-email-yang.lee@linux.alibaba.com>
Date: Thu, 4 Feb 2021 15:35:25 +0800
From: Yang Li <yang.lee@...ux.alibaba.com>
To: christian.koenig@....com
Cc: sumit.semwal@...aro.org, martin.petersen@...cle.com,
jejb@...ux.ibm.com, dick.kennedy@...adcom.com,
james.smart@...adcom.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linaro-mm-sig@...ts.linaro.org,
Yang Li <yang.lee@...ux.alibaba.com>
Subject: [PATCH] scsi: lpfc: Remove unneeded return variable
This patch removes unneeded return variables, using only
'1' instead.
It fixes the following warning detected by coccinelle:
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
---
drivers/scsi/lpfc/lpfc_sli.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 95caad7..31f97f6 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -3376,7 +3376,6 @@ struct lpfc_hbq_init *lpfc_hbq_defs[] = {
struct lpfc_iocbq *saveq)
{
struct lpfc_iocbq *cmdiocbp;
- int rc = 1;
unsigned long iflag;
cmdiocbp = lpfc_sli_iocbq_lookup(phba, pring, saveq);
@@ -3501,7 +3500,7 @@ struct lpfc_hbq_init *lpfc_hbq_defs[] = {
}
}
- return rc;
+ return 1;
}
/**
--
1.8.3.1
Powered by blists - more mailing lists