[netdrvr] irq handler minor cleanups in several drivers
* use irq_handler_t where appropriate * no need to use 'irq' function arg, its already stored in a data struct * rename irq handler 'irq' argument to 'dummy', where the function has been analyzed and proven not to use its first argument. * remove always-false "dev_id == NULL" test from irq handlers * remove pointless casts from void* * declance: irq argument is not const * add KERN_xxx printk prefix * fix minor whitespace weirdness Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
David S. Miller
parent
1b36efe07f
commit
28fc1f5a0c
@ -734,7 +734,7 @@ static int ixgbe_request_irq(struct ixgbe_adapter *adapter, u32 *num_rx_queues)
|
||||
{
|
||||
struct net_device *netdev = adapter->netdev;
|
||||
int flags, err;
|
||||
irqreturn_t(*handler) (int, void *) = &ixgbe_intr;
|
||||
irq_handler_t handler = ixgbe_intr;
|
||||
|
||||
flags = IRQF_SHARED;
|
||||
|
||||
|
Reference in New Issue
Block a user