]> git.baikalelectronics.ru Git - kernel.git/commit
ide-acpi: cleanup do_drive_get_GTF()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:42 +0000 (23:22 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:42 +0000 (23:22 +0100)
commitc704c9e2aaef359d9bfaf03f4484870a07c01d88
tree43710e4dbd804be7f17ff6adc919b721d5565a97
parentece38ac853e00183c5142eedef4e86a2254f7aeb
ide-acpi: cleanup do_drive_get_GTF()

* ide_noacpi is already checked by ide_acpi_exec_tfs()
  which is the only user of do_drive_get_GTF().

* ide_acpi_exec_tfs() prints sufficient debug info about the
  device so no need to have excessive data about port/host.

* It is sufficient to check for drive->acpidata->obj_handle
  as it will be NULL if dev == NULL or hwif->acpidata == NULL
  or device is not present.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-acpi.c