aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.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-floppy.c
parent5122e5174f872c9f3120c8aff71c448f84b6f038 (diff)
downloadkernel_samsung_smdk4412-ae3a8387be529e632eac69b342524c25b892fc63.zip
kernel_samsung_smdk4412-ae3a8387be529e632eac69b342524c25b892fc63.tar.gz
kernel_samsung_smdk4412-ae3a8387be529e632eac69b342524c25b892fc63.tar.bz2
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-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 060c893..14e5e9c 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -77,7 +77,8 @@ static int ide_floppy_callback(ide_drive_t *drive, int dsc)
(rq && blk_pc_request(rq)))
uptodate = 1; /* FIXME */
else if (pc->c[0] == GPCMD_REQUEST_SENSE) {
- u8 *buf = pc->buf;
+
+ u8 *buf = bio_data(rq->bio);
if (!pc->error) {
floppy->sense_key = buf[2] & 0x0F;