Created
June 7, 2012 05:51
-
-
Save anonymous/2886793 to your computer and use it in GitHub Desktop.
stdin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit ba8c7a7a629b736fdc1abceaa3ec49f8820aec08 | |
Author: Richard Yao <[email protected]> | |
Date: Thu Jun 7 01:44:31 2012 -0400 | |
scsi: lpfc_scsi: Remove unused variables | |
Kernels built with CONFIG_SCSI_LPFC fail to compile due to the use of | |
-Werror=unused-variable. We solve that by removing some unused | |
variables. | |
Signed-off-by: Richard Yao <[email protected]> | |
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c | |
index 88f3a83..7f20599 100644 | |
--- a/drivers/scsi/lpfc/lpfc_scsi.c | |
+++ b/drivers/scsi/lpfc/lpfc_scsi.c | |
@@ -1897,7 +1897,6 @@ lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |
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 @@ lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |
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 @@ lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |
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 @@ lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment