summaryrefslogtreecommitdiff
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@gmail.com>2009-05-02 10:58:17 +0200
committerBorislav Petkov <petkovbb@gmail.com>2009-05-15 06:44:23 +0200
commitae3a8387be529e632eac69b342524c25b892fc63 (patch)
tree30f9d6c3480e4c3fe8fdaf3bfa004911a54eadbd /drivers/ide/ide-atapi.c
parent5122e5174f872c9f3120c8aff71c448f84b6f038 (diff)
downloadlinux-3.10-ae3a8387be529e632eac69b342524c25b892fc63.tar.gz
linux-3.10-ae3a8387be529e632eac69b342524c25b892fc63.tar.bz2
linux-3.10-ae3a8387be529e632eac69b342524c25b892fc63.zip
ide-atapi: use local sense buffer
Access the sense buffer through the bio in ->pc_callback method thus alleviating the need for the pc->buf pointer. There should be no functional change resulting from this patch. Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r--drivers/ide/ide-atapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index b12be1f17f1..66ea1e7774f 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -253,7 +253,9 @@ void ide_retry_pc(ide_drive_t *drive)
/* init pc from sense_rq */
ide_init_pc(pc);
memcpy(pc->c, sense_rq->cmd, 12);
- pc->buf = bio_data(sense_rq->bio); /* pointer to mapped address */
+
+ /* pointer to mapped address */
+ pc->buf = bio_data(sense_rq->bio);
pc->req_xfer = blk_rq_bytes(sense_rq);
if (drive->media == ide_tape)