]> git.baikalelectronics.ru Git - kernel.git/commit
ide-acpi: cleanup do_drive_set_taskfiles()
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)
commit9ebba9559b0d781e726a8b1d03dee1cfb9fff20b
tree6a0a18dc234956eb38168ccb62284b452cce4fd0
parentc704c9e2aaef359d9bfaf03f4484870a07c01d88
ide-acpi: cleanup do_drive_set_taskfiles()

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

* ide_acpi_exec_tfs() prints sufficient debug info about the
  device so no need to do it again.

* do_drive_get_GTF() + ide_acpi_exec_tfs() make sure that this
  function will never be called with incorrect gtf_length argument
  or if device is not present.

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