diff options
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r-- | drivers/ide/ide-lib.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index 9fc4cfb2a272..1932119dfa00 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c | |||
@@ -277,14 +277,9 @@ int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) | |||
277 | 277 | ||
278 | static void ide_dump_opcode(ide_drive_t *drive) | 278 | static void ide_dump_opcode(ide_drive_t *drive) |
279 | { | 279 | { |
280 | struct request *rq; | 280 | struct request *rq = drive->hwif->hwgroup->rq; |
281 | ide_task_t *task = NULL; | 281 | ide_task_t *task = NULL; |
282 | 282 | ||
283 | spin_lock(&ide_lock); | ||
284 | rq = NULL; | ||
285 | if (HWGROUP(drive)) | ||
286 | rq = HWGROUP(drive)->rq; | ||
287 | spin_unlock(&ide_lock); | ||
288 | if (!rq) | 283 | if (!rq) |
289 | return; | 284 | return; |
290 | 285 | ||