From nobody Tue Apr 30 15:56:03 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 ARC-Seal: i=1; a=rsa-sha256; t=1600490040; cv=none; d=zohomail.com; s=zohoarc; b=iXY7rCoAQTmbsGVFlHRHn6GWHykR01crT7PWKXHfCqM0VhwDMejIj4cj8ewxaL0GjR3yQtMC4Ssx/YwDDuJoGX7v5e8G+l8Eu7RZWH8TwvGqEEzwy9MLcd78F/MH7LHxbRUoNNuF3DfjGIsHkoVlqWRQTjv9rUkYBDgpcrRUuBM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600490040; 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=FxJjPoVAraxAqVZmqfgtRo6zKZce97a9saPLqGe4KoQ=; b=ClSL3VmL/4KgL9I6FV83Njy8ntP7eWb5qeFRTq3GHO53vCDLkc/UH2sskJa60J8Aqgg/bbSq62er046OzBwHJlc87kU7thIlVj3ANNN3XcJDYHpKhQuHK872y3ADXNzPfWg5i0A7VR3UZhhqtLU64AZatnDDxe27Fj8NGfQoS4A= 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 Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1600490040263717.8892111914001; Fri, 18 Sep 2020 21:34:00 -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 1kJUYv-0007Rb-BA; Sat, 19 Sep 2020 04:33:25 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kJTN0-0000gw-J7 for xen-devel@lists.xenproject.org; Sat, 19 Sep 2020 03:17:02 +0000 Received: from huawei.com (unknown [45.249.212.35]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 892ebfb6-c078-4477-89f0-94b4c6e02874; Sat, 19 Sep 2020 03:16:56 +0000 (UTC) Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3E32B30318231580C927; Sat, 19 Sep 2020 11:16:51 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Sat, 19 Sep 2020 11:16:41 +0800 X-Inumbo-ID: 892ebfb6-c078-4477-89f0-94b4c6e02874 From: Jing Xiangfeng To: , , CC: , , Subject: [PATCH] xen: remove redundant initialization of variable ret Date: Sat, 19 Sep 2020 11:17:02 +0800 Message-ID: <20200919031702.32192-1-jingxiangfeng@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-Mailman-Approved-At: Sat, 19 Sep 2020 04:33:23 +0000 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: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" After commit 9f51c05dc41a ("pvcalls-front: Avoid get_free_pages(GFP_KERNEL) under spinlock"), the variable ret is being initialized with '-ENOMEM' that is meaningless. So remove it. Signed-off-by: Jing Xiangfeng Reviewed-by: Juergen Gross --- drivers/xen/pvcalls-front.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/pvcalls-front.c b/drivers/xen/pvcalls-front.c index 72d725a0ab5c..7984645b5956 100644 --- a/drivers/xen/pvcalls-front.c +++ b/drivers/xen/pvcalls-front.c @@ -371,7 +371,7 @@ static int alloc_active_ring(struct sock_mapping *map) static int create_active(struct sock_mapping *map, evtchn_port_t *evtchn) { void *bytes; - int ret =3D -ENOMEM, irq =3D -1, i; + int ret, irq =3D -1, i; =20 *evtchn =3D 0; init_waitqueue_head(&map->active.inflight_conn_req); --=20 2.17.1