]> err.no Git - linux-2.6/commit
Various drivers' irq handlers: kill dead code, needless casts
authorJeff Garzik <jeff@garzik.org>
Fri, 6 Oct 2006 19:00:58 +0000 (15:00 -0400)
committerJeff Garzik <jeff@garzik.org>
Fri, 6 Oct 2006 19:00:58 +0000 (15:00 -0400)
commitc7bec5aba52392aa8d675b8722735caf4a8b7265
tree8087cfd2866e63fba25e18ba1fa0f374c27be4f0
parentc31f28e778ab299a5035ea2bda64f245b8915d7c
Various drivers' irq handlers: kill dead code, needless casts

- Eliminate casts to/from void*

- Eliminate checks for conditions that never occur.  These typically
  fall into two classes:

1) Checking for 'dev_id == NULL', then it is never called with
NULL as an argument.

2) Checking for invalid irq number, when the only caller (the
system) guarantees the irq handler is called with the proper
'irq' number argument.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
35 files changed:
drivers/atm/ambassador.c
drivers/atm/horizon.c
drivers/atm/lanai.c
drivers/block/DAC960.c
drivers/cdrom/mcdx.c
drivers/char/rio/func.h
drivers/char/rio/rio_linux.c
drivers/char/rio/riointr.c
drivers/char/riscom8.c
drivers/char/specialix.c
drivers/media/video/zoran_device.c
drivers/pcmcia/at91_cf.c
drivers/pcmcia/hd64465_ss.c
drivers/scsi/NCR53c406a.c
drivers/scsi/aha152x.c
drivers/scsi/aic7xxx_old.c
drivers/scsi/dc395x.c
drivers/scsi/qlogicfas408.c
drivers/scsi/tmscsim.c
drivers/scsi/ultrastor.c
drivers/serial/68360serial.c
drivers/serial/jsm/jsm_neo.c
drivers/serial/mpc52xx_uart.c
drivers/serial/netx-serial.c
drivers/serial/pxa.c
drivers/sn/ioc3.c
drivers/spi/pxa2xx_spi.c
sound/isa/gus/gusmax.c
sound/isa/gus/interwave.c
sound/oss/es1371.c
sound/oss/hal2.c
sound/oss/i810_audio.c
sound/oss/mpu401.c
sound/oss/vwsnd.c
sound/pci/korg1212/korg1212.c