xen-netfront: remove redundant assignment to variable 'act'

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>
This commit is contained in:
Colin Ian King 2020-07-02 15:22:23 +01:00 committed by David S. Miller
parent dd2b7a66b6
commit e44f65fd66
1 changed files with 1 additions and 1 deletions

View 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);