summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-lib.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-12-29 20:27:30 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-12-29 20:27:30 +0100
commit1d0bf587df5b17bb93b32d760171417883ca907f (patch)
tree9068aa5b43b06609cdc0b57f6c5aee29069e6d21 /drivers/ide/ide-lib.c
parent44e312310889145b47311a311d3faf2488349116 (diff)
downloadlinux-1d0bf587df5b17bb93b32d760171417883ca907f.tar.gz
linux-1d0bf587df5b17bb93b32d760171417883ca907f.tar.bz2
linux-1d0bf587df5b17bb93b32d760171417883ca907f.zip
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)
static void ide_dump_opcode(ide_drive_t *drive)
{
- struct request *rq;
+ struct request *rq = drive->hwif->hwgroup->rq;
ide_task_t *task = NULL;
- spin_lock(&ide_lock);
- rq = NULL;
- if (HWGROUP(drive))
- rq = HWGROUP(drive)->rq;
- spin_unlock(&ide_lock);
if (!rq)
return;