diff options
author | Johann Felix Soden <johfel@users.sourceforge.net> | 2008-09-21 11:02:36 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-07 05:26:19 +0200 |
commit | 0bb08107edb3d38b89be8fb623b46df73f2aa8c8 (patch) | |
tree | 420c0b77e9ace21d3fb7f2e06c551b87b17560e9 /drivers/block | |
parent | powerpc: Remove outdated Documentation/powerpc/smp.txt (diff) | |
download | linux-0bb08107edb3d38b89be8fb623b46df73f2aa8c8.tar.xz linux-0bb08107edb3d38b89be8fb623b46df73f2aa8c8.zip |
powerpc/iseries: Remove unused variable in viodasd.c
The variable statindex in send_request is never read, so remove it.
Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/viodasd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c index f1c8feb5510b..1730d29e6044 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; |