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

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
...@@ -856,7 +856,7 @@ static u32 xennet_run_xdp(struct netfront_queue *queue, struct page *pdata, ...@@ -856,7 +856,7 @@ static u32 xennet_run_xdp(struct netfront_queue *queue, struct page *pdata,
{ {
struct xdp_frame *xdpf; struct xdp_frame *xdpf;
u32 len = rx->status; u32 len = rx->status;
u32 act = XDP_PASS; u32 act;
int err; int err;
xdp->data_hard_start = page_address(pdata); xdp->data_hard_start = page_address(pdata);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment