mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
qla2x00t-32gbit: Remove unneeded variable 'rval'
This addresses the following coccinelle warning: drivers/scsi/qla2xxx/qla_init.c:7112:5-9: Unneeded variable: "rval". Return "QLA_SUCCESS" on line 7115 Link: https://lore.kernel.org/r/20200911091021.2937708-1-yanaijie@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> See also upstream commit 34eb5ccf35daea082b6bc3857f82f23155fb266f. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -7119,10 +7119,9 @@ qla24xx_reset_adapter(scsi_qla_host_t *vha)
|
||||
unsigned long flags = 0;
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
struct device_reg_24xx __iomem *reg = &ha->iobase->isp24;
|
||||
int rval = QLA_SUCCESS;
|
||||
|
||||
if (IS_P3P_TYPE(ha))
|
||||
return rval;
|
||||
return QLA_SUCCESS;
|
||||
|
||||
vha->flags.online = 0;
|
||||
ha->isp_ops->disable_intrs(ha);
|
||||
@@ -7137,7 +7136,7 @@ qla24xx_reset_adapter(scsi_qla_host_t *vha)
|
||||
if (IS_NOPOLLING_TYPE(ha))
|
||||
ha->isp_ops->enable_intrs(ha);
|
||||
|
||||
return rval;
|
||||
return QLA_SUCCESS;
|
||||
}
|
||||
|
||||
/* On sparc systems, obtain port and node WWN from firmware
|
||||
|
||||
Reference in New Issue
Block a user