aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-lib.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-12-29 14:27:30 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-12-29 14:27:30 -0500
commit1d0bf587df5b17bb93b32d760171417883ca907f (patch)
tree9068aa5b43b06609cdc0b57f6c5aee29069e6d21 /drivers/ide/ide-lib.c
parent44e312310889145b47311a311d3faf2488349116 (diff)
ide: ide_hwgroup_t.rq doesn't need an ide_lock held
While at it: - no need to check for hwgroup presence in ide_dump_opcode() Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r--drivers/ide/ide-lib.c7
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
278static void ide_dump_opcode(ide_drive_t *drive) 278static 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