Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp434390imu; Fri, 4 Jan 2019 00:06:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN7RUSvvwgqKlWInNx4kSMIDTlL2KGERi7TlVmGN7Z4fK7wbB8B/Ep/dKjE/ISH2NhfeBwbR X-Received: by 2002:a17:902:9345:: with SMTP id g5mr49007126plp.148.1546589188988; Fri, 04 Jan 2019 00:06:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546589188; cv=none; d=google.com; s=arc-20160816; b=RryRCLoPNWlwbma1MB95I4KsWOZKbZu2Z2UzNpa3z9X+pAuJT9SaE8czi5tTw33TRr 2d2otNupYns6IIMKQVs0atZ7Nym9FSBREYm++lm5IQQObWISe8JqlJKD2nMtujOsc/im m+R27yKRODHywFq++uG2IDvs8D89wLZ68NnN6FYU9WnRAeNxcIukxsQx91gpTqMhq3D8 gxbvdnk9F44sypoUSct8i4pZK2i5djOJmZlL+ag6i3PIPxEHinyxTCghiwWGgJyDPT/1 knalKrGSriYkye6iuUMhFiD7CRtJd+ziEk4IsyQmrpE1cCyOtcruJ0f0g3Omo2drmLhz D1uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from; bh=HhOdvqsPZmlYWCK74VpreitNu7oF3cDb9/gvVE9Zk54=; b=D0GNSk+/bKI2l9Yh9+w+tgYc+aVeWQWvbxQ0kYCrFVjZoWUL6lTDygsVFxsUS1MqZA GLEPgfZZjxus95zVKpfIoakH2j/yfH+kZgKJ8TIw3ox6mY7NIUOMNhJugoNOO/2VCNOX s7YbWgBwVjLP7QHBjLUiYQg72qchxPTYA/3djHwymdNeRwe+UAZAFuZp7HGQE/meO+QJ o8bnPv/8W6Fm/O9pdBW7wNOZiLYmQGp0S4Vv9VaNPkFq9xiK7x4IVKGkknr9rYrsdAu0 jn/No5I98OneFWqUFbyZgNUzdAWAaBx7udvSB4+CaSlIpp25p+BMgE1RqTLKdfdtYY98 i1Sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si4992953pgh.496.2019.01.04.00.06.12; Fri, 04 Jan 2019 00:06:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726241AbfADF5H (ORCPT + 99 others); Fri, 4 Jan 2019 00:57:07 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:40025 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725958AbfADF5H (ORCPT ); Fri, 4 Jan 2019 00:57:07 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DB8FE9B810071; Fri, 4 Jan 2019 13:57:03 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Fri, 4 Jan 2019 13:56:56 +0800 From: YueHaibing To: Boris Ostrovsky , Juergen Gross , Stefano Stabellini CC: YueHaibing , , , Subject: [PATCH -next] xen/pvcalls: remove set but not used variable 'intf' Date: Fri, 4 Jan 2019 06:03:40 +0000 Message-ID: <1546581820-123466-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/pvcalls-back.c: In function 'pvcalls_sk_state_change': drivers/xen/pvcalls-back.c:286:28: warning: variable 'intf' set but not used [-Wunused-but-set-variable] It not used since e6587cdbd732 ("pvcalls-back: set -ENOTCONN in pvcalls_conn_back_read") Signed-off-by: YueHaibing --- drivers/xen/pvcalls-back.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/xen/pvcalls-back.c b/drivers/xen/pvcalls-back.c index 71b6287..7aa64d1 100644 --- a/drivers/xen/pvcalls-back.c +++ b/drivers/xen/pvcalls-back.c @@ -283,12 +283,10 @@ static int pvcalls_back_socket(struct xenbus_device *dev, static void pvcalls_sk_state_change(struct sock *sock) { struct sock_mapping *map = sock->sk_user_data; - struct pvcalls_data_intf *intf; if (map == NULL) return; - intf = map->ring; atomic_inc(&map->read); notify_remote_via_irq(map->irq); }