Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1653620pxk; Fri, 18 Sep 2020 20:18:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl9BuFtDAkYCMmHGqFEKY2aGsf3lAC+75b2HlgY4CRT1Pi4IQH54bBKsOCicWuSJfWRGcf X-Received: by 2002:aa7:cd06:: with SMTP id b6mr40478755edw.196.1600485532567; Fri, 18 Sep 2020 20:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600485532; cv=none; d=google.com; s=arc-20160816; b=FWlws5aUhlHsHBwdIUeWL9yrhKSaJm6Qqki31wSsmb3xrrXCJlOv3KTxlqcpJ8MZlu fnsDxO1rA0Yh/ItBO5Y+gxO32GhIGAPULSA6v38zSWyi57Orz+0yzffCneMn98IVhLhI yaJLMHBAqTbyG3FF12r1hTlPGUXEv+c36LTxX//9aEXj/r83GXz9nvrE+xHQe/ZU4P9e 1bhBLb36K9AUe5UxeGiayOsCkNFs1MaLV8SkS7IcVJGs+v3fy8mSxdJusQS5J/L49ez7 sCSZIi4DXB1I3PjcerezdEXfkKyPQUw688EKzKAg7D0CpXTsUcZyYzq4ElUTTTJDYOr5 /EWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=FxJjPoVAraxAqVZmqfgtRo6zKZce97a9saPLqGe4KoQ=; b=vHxtcSRIxix2PZVXv1pXD1SghlacEpYnMKjkRZX37xaCw6bgtzU+AqLRDhGvRw0Pou 78mlZx7hiZCX4Xe56sZgDA1dfTNJsGBR/euQRC+EeBJyavz4WHC6gCVtIiVZkrCtSniX 5Rq+fR+EF8UbrUtqvFzdwnTJggoZvlWzGjn1QgQ8X3bf6/kGbk3G/K7+9xKcap4Uf5dR KAaNuL+LA0COuZivTJvR3lR92FMYv55zWMelgwsTJW2NhVM/yloTKF4M8V95/IwSVgWu VAfsBJu3cQeq53zijHSIbL3UQStXwnBcU7eb6KdykThruxEn7TvG2omWgSVdGyH25dtS 9NsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si3756626edr.538.2020.09.18.20.18.29; Fri, 18 Sep 2020 20:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726375AbgISDQx (ORCPT + 99 others); Fri, 18 Sep 2020 23:16:53 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41126 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726119AbgISDQx (ORCPT ); Fri, 18 Sep 2020 23:16:53 -0400 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 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: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 = -ENOMEM, irq = -1, i; + int ret, irq = -1, i; *evtchn = 0; init_waitqueue_head(&map->active.inflight_conn_req); -- 2.17.1