diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-02 17:22:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-03 00:37:29 +0300 |
commit | e44f65fd666c73944d6f2462cea0559ce5508721 (patch) | |
tree | 879aa1e48d8607c783fda871f3c170bf8b14c902 /drivers/net/xen-netfront.c | |
parent | dd2b7a66b6a9c7bdf2c3d62e5d5b1a2abdddb052 (diff) | |
download | linux-e44f65fd666c73944d6f2462cea0559ce5508721.tar.xz |
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>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 468f3f6f1425..860a0cce346d 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); |