Skip to contentSkip to conversation

block: remove unused variable

PATCH New Emil Goode 1 participant 1 message Mar 25, 2013

Subsystems (2)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 block: remove unused variable

The struct rsxx_dma pointer tmp is not used, we can remove it. Introduced by: c95246c3a2ac
("Adding in EEH support to the IBM FlashSystem 70/80 device driver")

Sparse gives a warning:
drivers/block/rsxx/dma.c:1050:19: warning:
unused variable ‘tmp’ [-Wunused-variable]

---
 drivers/block/rsxx/dma.c |    1 -
 1 file changed, 1 deletion(-)
drivers/block/rsxx/dma.c +0 -1
index d523e9c..bacbaa0 100644
@@ -1047,7 +1047,6 @@ void rsxx_eeh_cancel_dmas(struct rsxx_cardinfo *card)
 int rsxx_eeh_remap_dmas(struct rsxx_cardinfo *card)
 {
 	struct rsxx_dma *dma;
-	struct rsxx_dma *tmp;
 	int i;
 
 	for (i = 0; i < card->n_targets; i++) {
Signature · 1 line
1.7.10.4