public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] hpsa: remove set but unused variable rc
@ 2014-10-29 15:15 Fabian Frederick
  2014-10-30  5:55 ` Sudip Mukherjee
  2014-10-30 15:21 ` Don Brace
  0 siblings, 2 replies; 6+ messages in thread
From: Fabian Frederick @ 2014-10-29 15:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fabian Frederick, Stephen M. Cameron, James E.J. Bottomley,
	iss_storagedev, linux-scsi

Fix -Wunused-but-set-variable warning

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 drivers/scsi/hpsa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index cef5d49..34330e1 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -6619,11 +6619,11 @@ static void hpsa_free_cmd_pool(struct ctlr_info *h)
 
 static void hpsa_irq_affinity_hints(struct ctlr_info *h)
 {
-	int i, cpu, rc;
+	int i, cpu;
 
 	cpu = cpumask_first(cpu_online_mask);
 	for (i = 0; i < h->msix_vector; i++) {
-		rc = irq_set_affinity_hint(h->intr[i], get_cpu_mask(cpu));
+		irq_set_affinity_hint(h->intr[i], get_cpu_mask(cpu));
 		cpu = cpumask_next(cpu, cpu_online_mask);
 	}
 }
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-30 15:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 15:15 [PATCH 1/1 linux-next] hpsa: remove set but unused variable rc Fabian Frederick
2014-10-30  5:55 ` Sudip Mukherjee
2014-10-30  6:28   ` Elliott, Robert (Server Storage)
2014-10-30  6:40     ` Sudip Mukherjee
2014-10-30 15:21 ` Don Brace
2014-10-30 15:27   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox