From nobody Sun May 19 02:06:35 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) 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=1559243186; cv=none; d=zoho.com; s=zohoarc; b=BEESq5Nijb+xTyXuq5yaiEGXx/Bo4WeXQLMFPP8knCD4/zGd2EaHQqjKPNQPu/PteCVpcengXyQEtzwuJE5VzbTcr2sSU+xRwse7wyeIMy3wsXWPnGEdPJc+T9thsOpZJtZt+hJLRFMzQEkZ2aF3o5ZZ6FHPzV7Wa2SoWdu4lgE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559243186; 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:ARC-Authentication-Results; bh=flnKJccbP5gh9LmPUuMuz7g730fJuhIDVzTL1vh0L3g=; b=Ndng3Urd6wtUHHhuV6YH5Gu8TnR7yBsK7U1Rq51Upj81SXxBAX+lP1AHI5NwraO3XXM/o+e+urc0zy4Vq1LjMAum+f5ZyzYdA0oU0HeJ6Ny67e11aaAqUG6l1JskYKBJ+W2ggz5Q9G7yLOpC7duPnOKR6GrRpGIIYGdzrd/+dV0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) 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 15592431864971006.2285282175936; Thu, 30 May 2019 12:06:26 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWQM1-0001uS-NU; Thu, 30 May 2019 19:04:45 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hWQM0-0001uN-Sp for xen-devel@lists.xenproject.org; Thu, 30 May 2019 19:04:44 +0000 Received: from youngberry.canonical.com (unknown [91.189.89.112]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id c852a1fc-830d-11e9-8980-bc764e045a96; Thu, 30 May 2019 19:04:43 +0000 (UTC) Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hWQLu-0004Od-Lv; Thu, 30 May 2019 19:04:38 +0000 X-Inumbo-ID: c852a1fc-830d-11e9-8980-bc764e045a96 From: Colin King To: Wei Liu , Paul Durrant , "David S . Miller" , xen-devel@lists.xenproject.org, netdev@vger.kernel.org Date: Thu, 30 May 2019 20:04:38 +0100 Message-Id: <20190530190438.9571-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] xen-netback: remove redundant assignment to err X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Colin Ian King The variable err is assigned with the value -ENOMEM that is never read and it is re-assigned a new value later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Acked-by: Wei Liu --- drivers/net/xen-netback/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/= interface.c index 783198844dd7..240f762b3749 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -633,7 +633,7 @@ int xenvif_connect_data(struct xenvif_queue *queue, unsigned int rx_evtchn) { struct task_struct *task; - int err =3D -ENOMEM; + int err; =20 BUG_ON(queue->tx_irq); BUG_ON(queue->task); --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel