提交 e44f65fd 编写于 作者: C Colin Ian King 提交者: 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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 dd2b7a66
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册