Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
b70d846c cedeac9d

+1 -1
+1 -1
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
··· 2201 2201 struct net_device *netdev) 2202 2202 { 2203 2203 struct atl1c_adapter *adapter = netdev_priv(netdev); 2204 - u16 tpd_req = 1; 2204 + u16 tpd_req; 2205 2205 struct atl1c_tpd_desc *tpd; 2206 2206 enum atl1c_trans_queue type = atl1c_trans_normal; 2207 2207