From nobody Fri May 3 14:18:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=canonical.com ARC-Seal: i=1; a=rsa-sha256; t=1593699776; cv=none; d=zohomail.com; s=zohoarc; b=CEQjSe37xxKXILTdTYufIqPsPXOnnyCPLIDbfU7dlRMl9715vyUQ1aXET9IcETFPTzT0W+UdUbGXKwn/eJIEc3ahzMrKq9H5VjpCgJFbimyF2ZLXCAslk9XSTjeDcfxkQmAGSVZpN02hd/l46OXVCvy1I+8NuBaWBLGiPYLLXok= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593699776; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=jy8XbNGFCYQzs+98FSRQpxfP3hHnhkm6D07ZHYYrV1w=; b=U8t6FdPogj1Xq0Sv9eixAVYzDJGI6udstESsPmwzDP5f1WJ0ShKkrBrWodR2C5LNkkiwrNfZEZe7OQKXRHDlQnENHHKzP3zpG8J2pModf7QC6zZfp6Vhpxo7smbwGZdxoTyUCH5Ww5xWCrSGQN1bXmMEOxgB5KgDeBytiSQZGq4= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1593699776544550.7557770502665; Thu, 2 Jul 2020 07:22:56 -0700 (PDT) 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 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 X-Inumbo-ID: 7786a83c-bc6f-11ea-8496-bc764e2007e4 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 =3D rx->status; - u32 act =3D XDP_PASS; + u32 act; int err; =20 xdp->data_hard_start =3D page_address(pdata); --=20 2.27.0