aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/viodasd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c
index f1c8feb5510b..1730d29e6044 100644
--- a/drivers/block/viodasd.c
+++ b/drivers/block/viodasd.c
@@ -249,7 +249,6 @@ static int send_request(struct request *req)
249 struct HvLpEvent *hev; 249 struct HvLpEvent *hev;
250 struct scatterlist sg[VIOMAXBLOCKDMA]; 250 struct scatterlist sg[VIOMAXBLOCKDMA];
251 int sgindex; 251 int sgindex;
252 int statindex;
253 struct viodasd_device *d; 252 struct viodasd_device *d;
254 unsigned long flags; 253 unsigned long flags;
255 254
@@ -258,11 +257,9 @@ static int send_request(struct request *req)
258 if (rq_data_dir(req) == READ) { 257 if (rq_data_dir(req) == READ) {
259 direction = DMA_FROM_DEVICE; 258 direction = DMA_FROM_DEVICE;
260 viocmd = viomajorsubtype_blockio | vioblockread; 259 viocmd = viomajorsubtype_blockio | vioblockread;
261 statindex = 0;
262 } else { 260 } else {
263 direction = DMA_TO_DEVICE; 261 direction = DMA_TO_DEVICE;
264 viocmd = viomajorsubtype_blockio | vioblockwrite; 262 viocmd = viomajorsubtype_blockio | vioblockwrite;
265 statindex = 1;
266 } 263 }
267 264
268 d = req->rq_disk->private_data; 265 d = req->rq_disk->private_data;