Commit cb51bcd5 authored by Bill Wendling's avatar Bill Wendling Committed by Martin K. Petersen

scsi: qla2xxx: Remove unused variable 'status'

Fix the clang build warning:

  drivers/scsi/qla2xxx/qla_nx.c:2209:6: error: variable 'status' set but not used [-Werror,-Wunused-but-set-variable]
        int status = 0;

Link: https://lore.kernel.org/r/20210726201924.3202278-4-morbo@google.comReviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarBill Wendling <morbo@google.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0525265e
...@@ -2166,7 +2166,6 @@ qla82xx_poll(int irq, void *dev_id) ...@@ -2166,7 +2166,6 @@ qla82xx_poll(int irq, void *dev_id)
struct qla_hw_data *ha; struct qla_hw_data *ha;
struct rsp_que *rsp; struct rsp_que *rsp;
struct device_reg_82xx __iomem *reg; struct device_reg_82xx __iomem *reg;
int status = 0;
uint32_t stat; uint32_t stat;
uint32_t host_int = 0; uint32_t host_int = 0;
uint16_t mb[8]; uint16_t mb[8];
...@@ -2195,7 +2194,6 @@ qla82xx_poll(int irq, void *dev_id) ...@@ -2195,7 +2194,6 @@ qla82xx_poll(int irq, void *dev_id)
case 0x10: case 0x10:
case 0x11: case 0x11:
qla82xx_mbx_completion(vha, MSW(stat)); qla82xx_mbx_completion(vha, MSW(stat));
status |= MBX_INTERRUPT;
break; break;
case 0x12: case 0x12:
mb[0] = MSW(stat); mb[0] = MSW(stat);
......
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