Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2798010yba; Mon, 15 Apr 2019 20:57:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0d7nkakf8APlW3+MjODjLYI788OFdGhGw3WSCQF9ID53RWh2qego+0mi3hIx0+OUjooK2 X-Received: by 2002:a17:902:567:: with SMTP id 94mr48247479plf.120.1555387026013; Mon, 15 Apr 2019 20:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555387026; cv=none; d=google.com; s=arc-20160816; b=hNJF9hco2B7CxDoUq8i3y3O4UPpodz3GvB1xD+r+v605oVieGeIcTFUflppFT/vaVV A7X1DiNiV0uXLWE3eezY6ZaWT4T00Pr8EcPzaZLV9uVS9nXeSAI+ldAbtW4EpqVjEt4/ zAxYTnul2+fDlORQg8fafVFlHakY12uSMxT8T3sVmt9Q3/ZF2zPljtonoOjXaPSFzAVC oDv0NIUiZEJqVANXy5FJXCj3U9xhcmzxT/eAbLz5cdAk0NM8Y6idfS6jn8nN3A7imjId y8qdEr1ipdGAM3fdCokL8VdpdHeIlZZdUs7GtQgIfJCmWKyTBCEaguTcG0CxVxHZxSUu m43A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SIXoBzwwhd5KY7S0PHNW/eQmORfSX+CwqV7S+KUOxjg=; b=vUXvvz0yjnaE0hJ344Vpp66bWmje6Y/ckGKKzLYqd/B2x6DXhk4/qODTt8QPZbf8Te RLHq6HA+Vp0Z0T+6o40MbtoJm5d4HLomMqJ3QQfeli7Dta43e6oy9QV6eirzxEcOIE3p DrcskyOfx7QgHRgzMVv5txd91mmhOwiUH6JUmF9BvkNCz95mqkBqwYUc5V7I4eBBjnIv 5F2pIi+Id7SyNduE35Gq4OJ42koSUyLI8hVXyQStwYH1Ce2+wcLG7tGSXqM6A8zLUnbb cwTGVUVU4WpCpDzuaTQJx7cocN6dNV4rT6Zsju7hrUGZJT3iBIQlJuIE4YOzs36OM9Lj A1Ow== 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 140si45567672pga.460.2019.04.15.20.56.48; Mon, 15 Apr 2019 20:57:06 -0700 (PDT) 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 S1726768AbfDPD4O (ORCPT + 99 others); Mon, 15 Apr 2019 23:56:14 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:34560 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726208AbfDPD4O (ORCPT ); Mon, 15 Apr 2019 23:56:14 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A9AA11633A79D2CA0A49; Tue, 16 Apr 2019 11:56:11 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.408.0; Tue, 16 Apr 2019 11:56:09 +0800 From: Mao Wenan To: , , CC: , , Subject: [PATCH] xenbus: drop useless LIST_HEAD in xenbus_write_watch() and xenbus_file_write() Date: Tue, 16 Apr 2019 12:06:51 +0800 Message-ID: <20190416040651.186468-1-maowenan@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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop LIST_HEAD where the variable it declares is never used. The declarations were introduced with the file, but the declared variables were not used. Fixes: 1107ba885e469("xen: add xenfs to allow usermode <-> Xen interaction") Signed-off-by: Mao Wenan --- drivers/xen/xenbus/xenbus_dev_frontend.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c index 0782ff3..faf452d 100644 --- a/drivers/xen/xenbus/xenbus_dev_frontend.c +++ b/drivers/xen/xenbus/xenbus_dev_frontend.c @@ -465,7 +465,6 @@ static int xenbus_write_watch(unsigned msg_type, struct xenbus_file_priv *u) struct watch_adapter *watch; char *path, *token; int err, rc; - LIST_HEAD(staging_q); path = u->u.buffer + sizeof(u->u.msg); token = memchr(path, 0, u->u.msg.len); @@ -523,7 +522,6 @@ static ssize_t xenbus_file_write(struct file *filp, uint32_t msg_type; int rc = len; int ret; - LIST_HEAD(staging_q); /* * We're expecting usermode to be writing properly formed -- 2.7.4