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:
committed by
David S. Miller
parent
dd2b7a66b6
commit
e44f65fd66
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user