* [PATCH] lpfc_scsi.c: remove unused variables (fixes compilation with -Werror)
@ 2012-06-05 19:00 David Arendt
0 siblings, 0 replies; only message in thread
From: David Arendt @ 2012-06-05 19:00 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 93 bytes --]
Hi,
here is a patch to fix lpfc_scsi.c compilation on kernel 3.4 / 3.4.1
Bye,
David Arendt
[-- Attachment #2: lpfc_scsi.patch --]
[-- Type: text/plain, Size: 1006 bytes --]
diff -ur linux-3.4.1.orig/drivers/scsi/lpfc/lpfc_scsi.c linux-3.4.1/drivers/scsi/lpfc/lpfc_scsi.c
--- linux-3.4.1.orig/drivers/scsi/lpfc/lpfc_scsi.c 2012-06-01 09:18:44.000000000 +0200
+++ linux-3.4.1/drivers/scsi/lpfc/lpfc_scsi.c 2012-06-05 20:24:43.157289036 +0200
@@ -1897,7 +1897,6 @@
dma_addr_t physaddr;
int i = 0, num_bde = 0, status;
int datadir = sc->sc_data_direction;
- uint32_t rc;
uint32_t checking = 1;
uint32_t reftag;
unsigned blksize;
@@ -2034,7 +2033,6 @@
int datadir = sc->sc_data_direction;
unsigned char pgdone = 0, alldone = 0;
unsigned blksize;
- uint32_t rc;
uint32_t checking = 1;
uint32_t reftag;
uint8_t txop, rxop;
@@ -2253,7 +2251,6 @@
uint32_t reftag;
unsigned blksize;
uint8_t txop, rxop;
- uint32_t rc;
uint32_t checking = 1;
uint32_t dma_len;
uint32_t dma_offset = 0;
@@ -2383,7 +2380,6 @@
uint32_t reftag;
uint8_t txop, rxop;
uint32_t dma_len;
- uint32_t rc;
uint32_t checking = 1;
uint32_t dma_offset = 0;
int num_sge = 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-05 19:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05 19:00 [PATCH] lpfc_scsi.c: remove unused variables (fixes compilation with -Werror) David Arendt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox