Skip to content

Commit

Permalink
powerpc/iseries: Remove unused variable in viodasd.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johann Felix Soden authored and Benjamin Herrenschmidt committed Oct 7, 2008
1 parent 94576b2 commit 0bb0810
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/block/viodasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 0bb0810

Please sign in to comment.