Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b70d846c authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cedeac9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;