xen-netfront: remove redundant assignment to variable 'act'
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Jul 2020 14:22:23 +0000 (15:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 21:37:29 +0000 (14:37 -0700)
The variable act 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/xen-netfront.c

index 468f3f6f142594f239876d2f43018ca75156b816..860a0cce346d4f659b53692de009ffd048f9c3d3 100644 (file)
@@ -856,7 +856,7 @@ static u32 xennet_run_xdp(struct netfront_queue *queue, struct page *pdata,
 {
        struct xdp_frame *xdpf;
        u32 len = rx->status;
-       u32 act = XDP_PASS;
+       u32 act;
        int err;
 
        xdp->data_hard_start = page_address(pdata);