浏览代码

ide-acpi: remove dead code from do_drive_get_GTF()

These pointers are always setup in ide_acpi_init().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Bartlomiej Zolnierkiewicz 17 年之前
父节点
当前提交
070ecb841c
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      drivers/ide/ide-acpi.c

+ 0 - 10
drivers/ide/ide-acpi.c

@@ -280,16 +280,6 @@ static int do_drive_get_GTF(ide_drive_t *drive,
 
 
 	port = hwif->channel ? drive->dn - 2: drive->dn;
 	port = hwif->channel ? drive->dn - 2: drive->dn;
 
 
-	if (!drive->acpidata) {
-		if (port == 0) {
-			drive->acpidata = &hwif->acpidata->master;
-			hwif->acpidata->master.drive = drive;
-		} else {
-			drive->acpidata = &hwif->acpidata->slave;
-			hwif->acpidata->slave.drive = drive;
-		}
-	}
-
 	DEBPRINT("ENTER: %s at %s, port#: %d, hard_port#: %d\n",
 	DEBPRINT("ENTER: %s at %s, port#: %d, hard_port#: %d\n",
 		 hwif->name, dev->bus_id, port, hwif->channel);
 		 hwif->name, dev->bus_id, port, hwif->channel);