summaryrefslogtreecommitdiff
path: root/drivers/net/atl1c/atl1c_main.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-04-17 11:55:20 +0400
committerDavid S. Miller <davem@davemloft.net>2011-04-17 11:55:20 +0400
commit0c78641d7f677c8f420f1c302b4848135b207eb8 (patch)
tree4cc8d2124af004863439c91f33cb210cf5e9ad93 /drivers/net/atl1c/atl1c_main.c
parentc96922c7beeb6246f36b89a1e8b61d99a435a780 (diff)
downloadlinux-0c78641d7f677c8f420f1c302b4848135b207eb8.tar.xz
atl1c: Fix set-but-unused variable.
The variable 'extra_size' is set but unused in atl1c_configure_tx(). Just kill it off. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1c/atl1c_main.c')
-rw-r--r--drivers/net/atl1c/atl1c_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c
index 894d485bf5bc..5c64a5d91544 100644
--- a/drivers/net/atl1c/atl1c_main.c
+++ b/drivers/net/atl1c/atl1c_main.c
@@ -1095,10 +1095,8 @@ static void atl1c_configure_tx(struct atl1c_adapter *adapter)
u32 max_pay_load;
u16 tx_offload_thresh;
u32 txq_ctrl_data;
- u32 extra_size = 0; /* Jumbo frame threshold in QWORD unit */
u32 max_pay_load_data;
- extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN;
tx_offload_thresh = MAX_TX_OFFLOAD_THRESH;
AT_WRITE_REG(hw, REG_TX_TSO_OFFLOAD_THRESH,
(tx_offload_thresh >> 3) & TX_TSO_OFFLOAD_THRESH_MASK);