Skip to content

Commit

Permalink
xen-netfront: remove redundant assignment to variable 'act'
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Colin Ian King authored and davem330 committed Jul 2, 2020
1 parent dd2b7a6 commit e44f65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/xen-netfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e44f65f

Please sign in to comment.