From patchwork Thu Jul 2 14:22:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 11639029 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B9216C1 for ; Thu, 2 Jul 2020 14:23:14 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11B5120772 for ; Thu, 2 Jul 2020 14:23:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11B5120772 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jr06l-0001AO-Et; Thu, 02 Jul 2020 14:22:35 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jr06k-0001AJ-Dw for xen-devel@lists.xenproject.org; Thu, 02 Jul 2020 14:22:34 +0000 X-Inumbo-ID: 7786a83c-bc6f-11ea-8496-bc764e2007e4 Received: from youngberry.canonical.com (unknown [91.189.89.112]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 7786a83c-bc6f-11ea-8496-bc764e2007e4; Thu, 02 Jul 2020 14:22:32 +0000 (UTC) Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jr06Z-0000Sf-K0; Thu, 02 Jul 2020 14:22:23 +0000 From: Colin King To: Boris Ostrovsky , Juergen Gross , Stefano Stabellini , "David S . Miller" , Jakub Kicinski , xen-devel@lists.xenproject.org, netdev@vger.kernel.org Subject: [PATCH][next] xen-netfront: remove redundant assignment to variable 'act' Date: Thu, 2 Jul 2020 15:22:23 +0100 Message-Id: <20200702142223.48178-1-colin.king@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Colin Ian King 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 --- drivers/net/xen-netfront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);