public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Arendt <admin@prnet.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] lpfc_scsi.c: remove unused variables (fixes compilation with -Werror)
Date: Tue, 05 Jun 2012 21:00:31 +0200	[thread overview]
Message-ID: <4FCE574F.7070007@prnet.org> (raw)

[-- 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;

                 reply	other threads:[~2012-06-05 19:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FCE574F.7070007@prnet.org \
    --to=admin@prnet.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox