提交 0bb08107 编写于 作者: J Johann Felix Soden 提交者: 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: NJohann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 94576b22
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册