Skip to contentSkip to conversation

qla2xxx: remove unused rval

PATCH In review Spencer Baugh 2 participants 2 messages Jul 22, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qla2xxx: remove unused rval

From: Joern Engel <[email protected]>

We don't touch the return value of qla2x00_loop_resync in qla2x00_do_dpc, so don't bother collecting it. Fixes a compiler warning.

---
 drivers/scsi/qla2xxx/qla_os.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_os.c +1 -2
index a28815b..b9ee115 100644
@@ -4793,7 +4793,6 @@ qla2x00_disable_board_on_pci_error(struct work_struct *work)
 static int
 qla2x00_do_dpc(void *data)
 {
-	int		rval;
 	scsi_qla_host_t *base_vha;
 	struct qla_hw_data *ha;
 
@@ -5025,7 +5024,7 @@ loop_resync_check:
 			if (!(test_and_set_bit(LOOP_RESYNC_ACTIVE,
 			    &base_vha->dpc_flags))) {
 
-				rval = qla2x00_loop_resync(base_vha);
+				qla2x00_loop_resync(base_vha);
 
 				clear_bit(LOOP_RESYNC_ACTIVE,
 						&base_vha->dpc_flags);
Signature · 1 line
2.5.0.rc3
Acked-by on v1 1/1
#1 lore raw
Quoted 41 lines · Spencer Baugh

From: Joern Engel <[email protected]>

We don't touch the return value of qla2x00_loop_resync in qla2x00_do_dpc, so don't bother collecting it. Fixes a compiler warning.

---
drivers/scsi/qla2xxx/qla_os.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_os.c +0 -0
index a28815b..b9ee115 100644
@@ -4793,7 +4793,6 @@ qla2x00_disable_board_on_pci_error(struct
 work_struct *work)

static int
qla2x00_do_dpc(void *data)
{

drivers/scsi/qla2xxx/qla_os.c +0 -1
-	int		rval;
	scsi_qla_host_t *base_vha;
	struct qla_hw_data *ha;
drivers/scsi/qla2xxx/qla_os.c +1 -1
@@ -5025,7 +5024,7 @@ loop_resync_check:
 			if (!(test_and_set_bit(LOOP_RESYNC_ACTIVE,
 			    &base_vha->dpc_flags))) {
 
-				rval = qla2x00_loop_resync(base_vha);
+				qla2x00_loop_resync(base_vha);
 
 				clear_bit(LOOP_RESYNC_ACTIVE,
 						&base_vha->dpc_flags);
Signature · 7 lines
2.5.0.rc3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Quoted 1 line