Commit e44f65fd authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dd2b7a66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);