Skip to content

Commit b70d846

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cedeac9 commit b70d846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/atheros/atl1c/atl1c_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,7 @@ static netdev_tx_t atl1c_xmit_frame(struct sk_buff *skb,
22012201
struct net_device *netdev)
22022202
{
22032203
struct atl1c_adapter *adapter = netdev_priv(netdev);
2204-
u16 tpd_req = 1;
2204+
u16 tpd_req;
22052205
struct atl1c_tpd_desc *tpd;
22062206
enum atl1c_trans_queue type = atl1c_trans_normal;
22072207

0 commit comments

Comments
 (0)