Patchwork powerpc: iSeries: remove unused variable in viodasd.c

login
register
mail settings
Submitter Johann Felix Soden
Date Sept. 21, 2008, 7:02 p.m.
Message ID <1222023756.7114.5.camel@localhost>
Download mbox | patch
Permalink /patch/820/
State Accepted
Commit 0bb08107edb3d38b89be8fb623b46df73f2aa8c8
Headers show

Comments

Johann Felix Soden - Sept. 21, 2008, 7:02 p.m.
From: Johann Felix Soden <johfel@users.sourceforge.net>

The variable statindex in send_request is never read, so remove it.

Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/block/viodasd.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Patch

diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c
index f1c8feb..1730d29 100644
--- a/drivers/block/viodasd.c
+++ b/drivers/block/viodasd.c
@@ -249,7 +249,6 @@  static int send_request(struct request *req)
 	struct HvLpEvent *hev;
 	struct scatterlist sg[VIOMAXBLOCKDMA];
 	int sgindex;
-	int statindex;
 	struct viodasd_device *d;
 	unsigned long flags;
 
@@ -258,11 +257,9 @@  static int send_request(struct request *req)
 	if (rq_data_dir(req) == READ) {
 		direction = DMA_FROM_DEVICE;
 		viocmd = viomajorsubtype_blockio | vioblockread;
-		statindex = 0;
 	} else {
 		direction = DMA_TO_DEVICE;
 		viocmd = viomajorsubtype_blockio | vioblockwrite;
-		statindex = 1;
 	}
 
         d = req->rq_disk->private_data;