aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/7990.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-01-24 05:06:46 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:12 -0500
commit79ea13ce07c951bb4d95471e7300baa0f1be9e78 (patch)
treec0ea320464201854c5d3a222e2dd0d10ae22c95f /drivers/net/7990.c
parent3e18826c73735eee5fca92584137824d9a387008 (diff)
NULL noise in drivers/net
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/7990.c')
-rw-r--r--drivers/net/7990.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/7990.c b/drivers/net/7990.c
index 224e0bff1ae0..750a46f4bc58 100644
--- a/drivers/net/7990.c
+++ b/drivers/net/7990.c
@@ -277,8 +277,6 @@ static int lance_rx (struct net_device *dev)
277 volatile struct lance_init_block *ib = lp->init_block; 277 volatile struct lance_init_block *ib = lp->init_block;
278 volatile struct lance_rx_desc *rd; 278 volatile struct lance_rx_desc *rd;
279 unsigned char bits; 279 unsigned char bits;
280 int len = 0; /* XXX shut up gcc warnings */
281 struct sk_buff *skb = 0; /* XXX shut up gcc warnings */
282#ifdef TEST_HITS 280#ifdef TEST_HITS
283 int i; 281 int i;
284#endif 282#endif
@@ -318,10 +316,10 @@ static int lance_rx (struct net_device *dev)
318 if (bits & LE_R1_FRA) dev->stats.rx_frame_errors++; 316 if (bits & LE_R1_FRA) dev->stats.rx_frame_errors++;
319 if (bits & LE_R1_EOP) dev->stats.rx_errors++; 317 if (bits & LE_R1_EOP) dev->stats.rx_errors++;
320 } else { 318 } else {
321 len = (rd->mblength & 0xfff) - 4; 319 int len = (rd->mblength & 0xfff) - 4;
322 skb = dev_alloc_skb (len+2); 320 struct sk_buff *skb = dev_alloc_skb (len+2);
323 321
324 if (skb == 0) { 322 if (!skb) {
325 printk ("%s: Memory squeeze, deferring packet.\n", 323 printk ("%s: Memory squeeze, deferring packet.\n",
326 dev->name); 324 dev->name);
327 dev->stats.rx_dropped++; 325 dev->stats.rx_dropped++;