Re: [PATCH 1/1 linux-next] hpsa: remove set but unused variable rc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/29/2014 10:15 AM, Fabian Frederick wrote:
Fix -Wunused-but-set-variable warning

Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
  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);
  	}
  }


I can add this patch to my current set of patches for 3.19 or ack this now, What would you prefer?

---
Don Brace
don.brace@xxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux