]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/iseries: Remove unused variable in viodasd.c
authorJohann Felix Soden <johfel@users.sourceforge.net>
Sun, 21 Sep 2008 09:02:36 +0000 (09:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 7 Oct 2008 03:26:19 +0000 (14:26 +1100)
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>
drivers/block/viodasd.c

index f1c8feb5510b1fd77922972df0ff08542d789f8e..1730d29e6044039d12a2da60ebfdf23ea225d0ef 100644 (file)
@@ -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;