diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-10-08 19:22:29 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:29 -0400 |
commit | 9265fabf0d4c3d0a52e169d4b9149d52fd91db69 (patch) | |
tree | 3e3f642719fd05cc2cd4759d7365b10ac89dda2c /drivers/net/cxgb3/cxgb3_main.c | |
parent | 33a85aa1c915c2f114bdac9b6d1ec00cc0fbc485 (diff) |
cxgb3 sparse warning fixes
Fix warnings from sparse related to shadowed variables and routines
that should be declared static.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_main.c')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index e22d06531051..61ffc925eae7 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
@@ -740,7 +740,7 @@ static inline char t3rev2char(struct adapter *adapter) | |||
740 | return rev; | 740 | return rev; |
741 | } | 741 | } |
742 | 742 | ||
743 | int update_tpsram(struct adapter *adap) | 743 | static int update_tpsram(struct adapter *adap) |
744 | { | 744 | { |
745 | const struct firmware *tpsram; | 745 | const struct firmware *tpsram; |
746 | char buf[64]; | 746 | char buf[64]; |
@@ -1769,7 +1769,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr) | |||
1769 | } | 1769 | } |
1770 | case CHELSIO_SET_QSET_NUM:{ | 1770 | case CHELSIO_SET_QSET_NUM:{ |
1771 | struct ch_reg edata; | 1771 | struct ch_reg edata; |
1772 | struct port_info *pi = netdev_priv(dev); | ||
1773 | unsigned int i, first_qset = 0, other_qsets = 0; | 1772 | unsigned int i, first_qset = 0, other_qsets = 0; |
1774 | 1773 | ||
1775 | if (!capable(CAP_NET_ADMIN)) | 1774 | if (!capable(CAP_NET_ADMIN)) |
@@ -1801,7 +1800,6 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr) | |||
1801 | } | 1800 | } |
1802 | case CHELSIO_GET_QSET_NUM:{ | 1801 | case CHELSIO_GET_QSET_NUM:{ |
1803 | struct ch_reg edata; | 1802 | struct ch_reg edata; |
1804 | struct port_info *pi = netdev_priv(dev); | ||
1805 | 1803 | ||
1806 | edata.cmd = CHELSIO_GET_QSET_NUM; | 1804 | edata.cmd = CHELSIO_GET_QSET_NUM; |
1807 | edata.val = pi->nqsets; | 1805 | edata.val = pi->nqsets; |