summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>2003-08-30 22:17:10 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-30 22:17:10 -0700
commit7e2f5c07f8fbb84a227e7b9238ea3ebda2375118 (patch)
treea965c534b94ac840182d6a4c708a3977e54569eb
parent278db3a7af9d4150ce9c06a9f483b4c9782f4490 (diff)
[PATCH] do not set drive->dn twice in probe_hwif()
-rw-r--r--drivers/ide/ide-probe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index abe3fbb96659..00bb754001f7 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -773,8 +773,7 @@ void probe_hwif (ide_hwif_t *hwif)
*/
for (unit = 0; unit < MAX_DRIVES; ++unit) {
ide_drive_t *drive = &hwif->drives[unit];
- drive->dn = ((hwif->channel ? 2 : 0) + unit);
- hwif->drives[unit].dn = ((hwif->channel ? 2 : 0) + unit);
+ drive->dn = (hwif->channel ? 2 : 0) + unit;
(void) probe_for_drive(drive);
if (drive->present && !hwif->present) {
hwif->present = 1;