projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4484d80
)
ide-acpi: remove dead code from do_drive_get_GTF()
author
Bartlomiej Zolnierkiewicz
<
[email protected]
>
Sat, 2 Feb 2008 18:56:43 +0000
(19:56 +0100)
committer
Bartlomiej Zolnierkiewicz
<
[email protected]
>
Sat, 2 Feb 2008 18:56:43 +0000
(19:56 +0100)
These pointers are always setup in ide_acpi_init().
Signed-off-by: Bartlomiej Zolnierkiewicz <
[email protected]
>
drivers/ide/ide-acpi.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-acpi.c
b/drivers/ide/ide-acpi.c
index 6dfe1036e6fa738bedfd5f02061c986e46172806..ac12d30f210579ed6c8c521cae788ed2950db00a 100644
(file)
--- a/
drivers/ide/ide-acpi.c
+++ b/
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;
- 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",
hwif->name, dev->bus_id, port, hwif->channel);