]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
atl1c: remove redundant assignment to variable tpd_req
authorColin Ian King <colin.king@canonical.com>
Wed, 3 Jul 2019 07:53:58 +0000 (08:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jul 2019 18:32:39 +0000 (11:32 -0700)
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>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c

index 25bf085324b882af03216091a1122d1bc704a12b..be7f9cebb675ea3991fef4a4d7c85995b109774d 100644 (file)
@@ -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;