summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros/atl1c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-03 09:53:58 +0200
committerDavid S. Miller <davem@davemloft.net>2019-07-03 20:32:39 +0200
commitb70d846cf446f71eda352be46a94e330e3255406 (patch)
tree0358a6e547886e9c4ae8bb208c83d72f137c38e7 /drivers/net/ethernet/atheros/atl1c
parentqed: Add support for Timestamping the unicast PTP packets. (diff)
downloadlinux-b70d846cf446f71eda352be46a94e330e3255406.tar.xz
linux-b70d846cf446f71eda352be46a94e330e3255406.zip
atl1c: remove redundant assignment to variable tpd_req
The variable tpd_req is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros/atl1c')
-rw-r--r--drivers/net/ethernet/atheros/atl1c/atl1c_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index 25bf085324b8..be7f9cebb675 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -2201,7 +2201,7 @@ static netdev_tx_t atl1c_xmit_frame(struct sk_buff *skb,
struct net_device *netdev)
{
struct atl1c_adapter *adapter = netdev_priv(netdev);
- u16 tpd_req = 1;
+ u16 tpd_req;
struct atl1c_tpd_desc *tpd;
enum atl1c_trans_queue type = atl1c_trans_normal;