Commit 0bb08107 authored by Johann Felix Soden's avatar Johann Felix Soden Committed by Benjamin Herrenschmidt

powerpc/iseries: Remove unused variable in viodasd.c

The variable statindex in send_request is never read, so remove it.
Signed-off-by: default avatarJohann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 94576b22
...@@ -249,7 +249,6 @@ static int send_request(struct request *req) ...@@ -249,7 +249,6 @@ static int send_request(struct request *req)
struct HvLpEvent *hev; struct HvLpEvent *hev;
struct scatterlist sg[VIOMAXBLOCKDMA]; struct scatterlist sg[VIOMAXBLOCKDMA];
int sgindex; int sgindex;
int statindex;
struct viodasd_device *d; struct viodasd_device *d;
unsigned long flags; unsigned long flags;
...@@ -258,11 +257,9 @@ static int send_request(struct request *req) ...@@ -258,11 +257,9 @@ static int send_request(struct request *req)
if (rq_data_dir(req) == READ) { if (rq_data_dir(req) == READ) {
direction = DMA_FROM_DEVICE; direction = DMA_FROM_DEVICE;
viocmd = viomajorsubtype_blockio | vioblockread; viocmd = viomajorsubtype_blockio | vioblockread;
statindex = 0;
} else { } else {
direction = DMA_TO_DEVICE; direction = DMA_TO_DEVICE;
viocmd = viomajorsubtype_blockio | vioblockwrite; viocmd = viomajorsubtype_blockio | vioblockwrite;
statindex = 1;
} }
d = req->rq_disk->private_data; d = req->rq_disk->private_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment