Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp995871iol; Thu, 9 Jun 2022 20:07:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqPF8y70IXvFnKXdaeECVhoaY+SuFeV1l3C1xQ8v4dlGo56LjgiqEcO4/c9kzBO04tNfij X-Received: by 2002:a17:902:aa8f:b0:168:b18c:5e16 with SMTP id d15-20020a170902aa8f00b00168b18c5e16mr4159952plr.64.1654830469192; Thu, 09 Jun 2022 20:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654830469; cv=none; d=google.com; s=arc-20160816; b=ju4J4EJtAGTkp+hnvEnXP3tXdYpgKU7q6PFlcJZ5fWk3DOIuHG2CnjiN2PethLJQc+ Ld/VzV/e2zrWFwzex8KiFzOEDljbRQ4jIdZ3LQznUtBw/0gcHYerGpHOkfX/t01i0YKv C0AygWksO/XiSI5Kskefh6WOE0wElceKvqTx1rMHgh2LSNo9HhZNookDHy3/7k9+AwfU ECeivkEB4ElmkUBAh5l2BaTA2q+bf7OszI+OMWzCUg5xIZjK3laEvcariQUdQdSCvZ8n 2DtPVwNRkoI24KfPcKJiQgyYAWnIcTcKgqPrcob6G6EpcAgT/k1uWMJlNht/ezGwc2Ws ZmZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:abuse-reports-to:tuid:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=F3Ogn1u8/GhhBOArnPQNaXH33KnWy0Tdqiqyndq67r0=; b=TmMGPr+AXmER/YoryckBam/d6ATW7K0mRyBWw+Y+NvcEY2HmgsY12J7Pxlhm9R04nz YooQiUDkCGqrWS5sHmPTJlPmyVgxdpKsm1JroU5ukJSQuDwLjwWI5TJOvd1u+49L5yaj dJqDbaNl7Ywge5+cBzQ4aAgctcYbYq5JO8sKSESV8xsMEnFKqGEYObYtkCKivd74JP5O ZmFYHrCmTvaRWAarqVaqSSn047y1cK35iwJFcwDijPCKU690NKsL/nKM0v0Jy6gmaAPi hxyFNZHVSoPL8R73yXCdo7pSTWbpW6qdUSW7khVKMFXRMpaKywGZbKik2SRoO+ePQ8Ks wb4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o38-20020a17090a0a2900b001e31dce0eb8si1355295pjo.62.2022.06.09.20.07.30; Thu, 09 Jun 2022 20:07:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242603AbiFJCIy (ORCPT + 99 others); Thu, 9 Jun 2022 22:08:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233048AbiFJCIx (ORCPT ); Thu, 9 Jun 2022 22:08:53 -0400 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BAC622BB8B for ; Thu, 9 Jun 2022 19:08:47 -0700 (PDT) Received: from ([60.208.111.195]) by ssh248.corpemail.net ((D)) with ASMTP (SSL) id EYS00042; Fri, 10 Jun 2022 10:08:42 +0800 Received: from localhost.localdomain (10.200.104.82) by jtjnmail201612.home.langchao.com (10.100.2.12) with Microsoft SMTP Server id 15.1.2308.27; Fri, 10 Jun 2022 10:08:42 +0800 From: Deming Wang To: , , CC: , , , Deming Wang Subject: [PATCH] virtiofs: delete unused parameter for virtio_fs_cleanup_vqs Date: Thu, 9 Jun 2022 22:08:38 -0400 Message-ID: <20220610020838.1543-1-wangdeming@inspur.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.200.104.82] tUid: 20226101008420bf8402121fba2a78ef67f2620eb00cc X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fs parameter not used. So, it needs to be deleted. Signed-off-by: Deming Wang --- fs/fuse/virtio_fs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 8db53fa67359..0991199d19c1 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -741,8 +741,7 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev, } /* Free virtqueues (device must already be reset) */ -static void virtio_fs_cleanup_vqs(struct virtio_device *vdev, - struct virtio_fs *fs) +static void virtio_fs_cleanup_vqs(struct virtio_device *vdev) { vdev->config->del_vqs(vdev); } @@ -895,7 +894,7 @@ static int virtio_fs_probe(struct virtio_device *vdev) out_vqs: virtio_reset_device(vdev); - virtio_fs_cleanup_vqs(vdev, fs); + virtio_fs_cleanup_vqs(vdev); kfree(fs->vqs); out: @@ -927,7 +926,7 @@ static void virtio_fs_remove(struct virtio_device *vdev) virtio_fs_stop_all_queues(fs); virtio_fs_drain_all_queues_locked(fs); virtio_reset_device(vdev); - virtio_fs_cleanup_vqs(vdev, fs); + virtio_fs_cleanup_vqs(vdev); vdev->priv = NULL; /* Put device reference on virtio_fs object */ -- 2.27.0