aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_main.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-05 12:07:31 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:45 -0500
commit993fb90c5b1727342362c43ed4e29c26682f54f7 (patch)
treec151fa32d24fd1725d425561874b12e9b701421e /drivers/net/netxen/netxen_nic_main.c
parent3957d63da0067ad6a7dc8261b7eeb824f9dc42b4 (diff)
drivers/net/netxen/: cleanups
This patch contains the following cleanups: - static functions in .c files shouldn't be marked inline - make needlessly global code static - #if 0 unused code Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r--drivers/net/netxen/netxen_nic_main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 263b55e36c7a..8e7736987b94 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -89,8 +89,8 @@ MODULE_DEVICE_TABLE(pci, netxen_pci_tbl);
89struct workqueue_struct *netxen_workq; 89struct workqueue_struct *netxen_workq;
90static void netxen_watchdog(unsigned long); 90static void netxen_watchdog(unsigned long);
91 91
92static inline void netxen_nic_update_cmd_producer(struct netxen_adapter *adapter, 92static void netxen_nic_update_cmd_producer(struct netxen_adapter *adapter,
93 uint32_t crb_producer) 93 uint32_t crb_producer)
94{ 94{
95 switch (adapter->portnum) { 95 switch (adapter->portnum) {
96 case 0: 96 case 0:
@@ -118,8 +118,8 @@ static inline void netxen_nic_update_cmd_producer(struct netxen_adapter *adapter
118 } 118 }
119} 119}
120 120
121static inline void netxen_nic_update_cmd_consumer(struct netxen_adapter *adapter, 121static void netxen_nic_update_cmd_consumer(struct netxen_adapter *adapter,
122 u32 crb_consumer) 122 u32 crb_consumer)
123{ 123{
124 switch (adapter->portnum) { 124 switch (adapter->portnum) {
125 case 0: 125 case 0:
@@ -148,7 +148,6 @@ static inline void netxen_nic_update_cmd_consumer(struct netxen_adapter *adapter
148} 148}
149 149
150#define ADAPTER_LIST_SIZE 12 150#define ADAPTER_LIST_SIZE 12
151int netxen_cards_found;
152 151
153static void netxen_nic_disable_int(struct netxen_adapter *adapter) 152static void netxen_nic_disable_int(struct netxen_adapter *adapter)
154{ 153{