* [PATCH REPOST] powerpc: iSeries: remove unused variable in viodasd.c
@ 2008-10-02 16:22 Johann Felix Soden
0 siblings, 0 replies; only message in thread
From: Johann Felix Soden @ 2008-10-02 16:22 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Stephen Rothwell, trivial, linuxppc-dev
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>
---
now CC to trivial@kernel.org
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 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;
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-02 16:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 16:22 [PATCH REPOST] powerpc: iSeries: remove unused variable in viodasd.c Johann Felix Soden
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.