diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 21:57:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 21:57:39 -0400 |
commit | 25c263542ddf9396012b6a6fa2b327d304f7f9a3 (patch) | |
tree | d7258f81da125b0bf4a2ce0ede2e79db38a7ed04 /drivers/net/netxen/netxen_nic_main.c | |
parent | d8581969904b8a72db726c4b9090234c0f0bb18f (diff) | |
parent | 7c2399756ab8ccb2c57da4630b4aa4a1d61b3846 (diff) |
Merge branch 'irq-upstream' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6
* 'irq-upstream' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6:
[SPARC, XEN, NET/CXGB3] use irq_handler_t where appropriate
drivers/char/riscom8: clean up irq handling
isdn/sc: irq handler clean
isdn/act2000: fix major bug. clean irq handler.
char/pcmcia/synclink_cs: trim trailing whitespace
drivers/char/ip2: separate polling and irq-driven work entry points
drivers/char/ip2: split out irq core logic into separate function
[NETDRVR] lib82596, netxen: delete pointless tests from irq handler
Eliminate pointless casts from void* in a few driver irq handlers.
[PARPORT] Remove unused 'irq' argument from parport irq functions
[PARPORT] Kill useful 'irq' arg from parport_{generic_irq,ieee1284_interrupt}
[PARPORT] Consolidate code copies into a single generic irq handler
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 601051c584e8..a80f0cd6b528 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -1268,17 +1268,10 @@ netxen_handle_int(struct netxen_adapter *adapter, struct net_device *netdev) | |||
1268 | */ | 1268 | */ |
1269 | irqreturn_t netxen_intr(int irq, void *data) | 1269 | irqreturn_t netxen_intr(int irq, void *data) |
1270 | { | 1270 | { |
1271 | struct netxen_adapter *adapter; | 1271 | struct netxen_adapter *adapter = data; |
1272 | struct net_device *netdev; | 1272 | struct net_device *netdev = adapter->netdev; |
1273 | u32 our_int = 0; | 1273 | u32 our_int = 0; |
1274 | 1274 | ||
1275 | if (unlikely(!irq)) { | ||
1276 | return IRQ_NONE; /* Not our interrupt */ | ||
1277 | } | ||
1278 | |||
1279 | adapter = (struct netxen_adapter *)data; | ||
1280 | netdev = adapter->netdev; | ||
1281 | |||
1282 | if (!(adapter->flags & NETXEN_NIC_MSI_ENABLED)) { | 1275 | if (!(adapter->flags & NETXEN_NIC_MSI_ENABLED)) { |
1283 | our_int = readl(NETXEN_CRB_NORMALIZE(adapter, CRB_INT_VECTOR)); | 1276 | our_int = readl(NETXEN_CRB_NORMALIZE(adapter, CRB_INT_VECTOR)); |
1284 | /* not our interrupt */ | 1277 | /* not our interrupt */ |