From: Colin Ian King Date: Thu, 2 Jul 2020 14:22:23 +0000 (+0100) Subject: xen-netfront: remove redundant assignment to variable 'act' X-Git-Tag: v5.9-rc1~133^2~353 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e44f65fd666c73944d6f2462cea0559ce5508721;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 468f3f6f14259..860a0cce346d4 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -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);