From nobody Thu May 2 06:52:15 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 ARC-Seal: i=1; a=rsa-sha256; t=1555389870; cv=none; d=zoho.com; s=zohoarc; b=lBYpFapQnoWgSUn9VKnBPutwxh+hjEc1idF4MJlEr1Kf9dBcZ5rc/WOs5Wa3Pndmqxn05TxomGi/luEx1gmqSMMDoiiBrohhPgrGJD63m4WrDEb/BUlMjdzzsfWLTTcl4u5hmR2Du/N0bi17qzEnPyF1e4pqPdJsHyjnLPYne6g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555389870; 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=MVd4HeWvYDoUCvyyyD82hSevIl72N70f64RwgKC8k3Q=; b=KvPeSmSzYJjxgsn6pl58Ef+ivjlBdrzR7qEbQEanNoNap1TZJbkKqbXi0HNYFp00IdXTKV2e/+SyT4q8sIeDc3DBjRPpvMYYE74YFiRCsPG965ULNIT8W3Y97BG0o5m5Lrhg6ryyLOalyOLHIayqzf7qZFEAkCDjCv+N1GvLvmQ= 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 Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1555389870687842.6550647190679; Mon, 15 Apr 2019 21:44:30 -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 1hGFvr-00059c-R6; Tue, 16 Apr 2019 04:42:55 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hGFCh-0001NT-1Z for xen-devel@lists.xenproject.org; Tue, 16 Apr 2019 03:56:15 +0000 Received: from huawei.com (unknown [45.249.212.32]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 9375a81b-5ffb-11e9-92d7-bc764e045a96; Tue, 16 Apr 2019 03:56:14 +0000 (UTC) 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 X-Inumbo-ID: 9375a81b-5ffb-11e9-92d7-bc764e045a96 From: Mao Wenan To: , , 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 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-Mailman-Approved-At: Tue, 16 Apr 2019 04:42:54 +0000 Subject: [Xen-devel] [PATCH] xenbus: drop useless LIST_HEAD in xenbus_write_watch() and xenbus_file_write() 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: xen-devel@lists.xenproject.org, 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" 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 Reviewed-by: Juergen Gross --- 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); =20 path =3D u->u.buffer + sizeof(u->u.msg); token =3D 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 =3D len; int ret; - LIST_HEAD(staging_q); =20 /* * We're expecting usermode to be writing properly formed --=20 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel