aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atl1
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-10-05 20:19:47 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:55:27 -0400
commitddfce6bb43c6bf1c9956e7a65ce1b2e19a156bd2 (patch)
tree38e871422ccb6168ae84ca6e33e9374715c3df9b /drivers/net/atl1
parent43b7c451a03fe5f615710e26e8e2a3dd70eaa5b1 (diff)
network drivers: sparse warning fixes
Fix some of the easy warnings in network device drivers. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/atl1')
-rw-r--r--drivers/net/atl1/atl1_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/atl1/atl1_main.c b/drivers/net/atl1/atl1_main.c
index 4c728f1169c4..35b0a7dd4ef4 100644
--- a/drivers/net/atl1/atl1_main.c
+++ b/drivers/net/atl1/atl1_main.c
@@ -1367,7 +1367,6 @@ rrd_ok:
1367 if (count) { 1367 if (count) {
1368 u32 tpd_next_to_use; 1368 u32 tpd_next_to_use;
1369 u32 rfd_next_to_use; 1369 u32 rfd_next_to_use;
1370 u32 rrd_next_to_clean;
1371 1370
1372 spin_lock(&adapter->mb_lock); 1371 spin_lock(&adapter->mb_lock);
1373 1372
@@ -1512,7 +1511,7 @@ static void atl1_tx_map(struct atl1_adapter *adapter, struct sk_buff *skb,
1512 unsigned int f; 1511 unsigned int f;
1513 u16 tpd_next_to_use; 1512 u16 tpd_next_to_use;
1514 u16 proto_hdr_len; 1513 u16 proto_hdr_len;
1515 u16 i, m, len12; 1514 u16 len12;
1516 1515
1517 first_buf_len -= skb->data_len; 1516 first_buf_len -= skb->data_len;
1518 nr_frags = skb_shinfo(skb)->nr_frags; 1517 nr_frags = skb_shinfo(skb)->nr_frags;
@@ -1536,6 +1535,8 @@ static void atl1_tx_map(struct atl1_adapter *adapter, struct sk_buff *skb,
1536 tpd_next_to_use = 0; 1535 tpd_next_to_use = 0;
1537 1536
1538 if (first_buf_len > proto_hdr_len) { 1537 if (first_buf_len > proto_hdr_len) {
1538 int i, m;
1539
1539 len12 = first_buf_len - proto_hdr_len; 1540 len12 = first_buf_len - proto_hdr_len;
1540 m = (len12 + ATL1_MAX_TX_BUF_LEN - 1) / 1541 m = (len12 + ATL1_MAX_TX_BUF_LEN - 1) /
1541 ATL1_MAX_TX_BUF_LEN; 1542 ATL1_MAX_TX_BUF_LEN;