]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] aha152x, eata, u14-34f: minor irq handler cleanups
authorJeff Garzik <jeff@garzik.org>
Fri, 18 Apr 2008 23:22:52 +0000 (19:22 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 25 Apr 2008 14:52:30 +0000 (09:52 -0500)
commite19166d5df10be0ea404c4e346cf6be93bfb1d63
tree43004d05713dc50a2fcb732b6514b5aa297f6347
parent8911c9e3343c647b59727b47b10feca7ee9ac9c3
[SCSI] aha152x, eata, u14-34f: minor irq handler cleanups

- remove pointless casts from void*

- remove needless references to 'irq' function argument, when that
  information is already stored somewhere in a driver-private struct.

- where the 'irq' function argument is known never to be used, rename
  it to 'dummy' to make this more obvious

- remove always-false tests for dev_id==NULL

- remove always-true tests for 'irq == host_struct->irq'

- replace per-irq lookup functions and tables with a direct reference
  to data object obtained via 'dev_id' function argument, passed from
  request_irq()

This change's main purpose is to prepare for the patchset in
jgarzik/misc-2.6.git#irq-remove, that explores removal of the
never-used 'irq' argument in each interrupt handler.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/aha152x.c
drivers/scsi/eata.c
drivers/scsi/u14-34f.c