diff options
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; |