Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp408997ybg; Tue, 22 Oct 2019 23:26:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQ3K6tkx0mIEj2m9rcPuNgdqBJgMY2D91CNxL48U4y2oclCVxoZZKpZo5YSo8+SQKAh01V X-Received: by 2002:a17:906:1e54:: with SMTP id i20mr4823164ejj.227.1571812005948; Tue, 22 Oct 2019 23:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571812005; cv=none; d=google.com; s=arc-20160816; b=UqsKp5FOtOxQ++apdNKVaKy9XKwutwiogjeEjB1Lco//9AvtDu0pzaBk8phr9isj/5 lUAms31Kk0heTHepVfhoeCVmrfefOFqCL/FIR27wOrU0ol/ZLma4kav877NIt+DNOXo9 OigNpeyWy8SpOIe1icfr4u3tqe73WboMC9Z1DcPQQd2SO/1sx6cW2q4lQn8G85Jty23u ta+wuE93JY6IGsh41mW66QAZQNUqnCsIFMonp1go1zIqj4oC3esDwFaf0kTLFJKZj2/5 OtCfIrs9MYZm41am2J48DsUZg8nJOqgTic2DGtWKJCyBNZaU2r1B/g9UY3CFinaRzBpG 18+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=mjMci9PQ8SAW+MqnTkmVTeOfEmhPRqydwRj/EWBtKqM=; b=JsccLtvXPJp33ke5xzT44NkRVt5arKUni2sgl2mit8vvXvm4d527cL3mJYsFN3MkSE z56cqBlqWqfSrv6kfnm50EnKJeUuW05pVCcycolNxMKk7ud+rhaaEDjmCTsDOrQf6eqM W/VpLydyZyX+pMPg4yV6YkSOJiAe5y5dIK9Zsigc0eYbaf/qWFrcPjlb4TQvwYPGUee1 1BGXbqyzzZUF59A7hLceRtkIxQE4qbLDju0XKiZEPdcac8zlEH+ASM8WwjIrcN30kWHI 1Qgb0dOvAbTvHMKZhzGAfLFyd4jK3kRD25fzLAhKPzGjDKyeyEBtrHNUpyIuNQiRpLlx LtoQ== 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 v25si2505508eja.418.2019.10.22.23.26.22; Tue, 22 Oct 2019 23:26:45 -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 S2388217AbfJWGZc (ORCPT + 99 others); Wed, 23 Oct 2019 02:25:32 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:40086 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725947AbfJWGZc (ORCPT ); Wed, 23 Oct 2019 02:25:32 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D4C0CF4705001F0471B5; Wed, 23 Oct 2019 14:25:28 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Wed, 23 Oct 2019 14:25:19 +0800 From: YueHaibing To: , , , CC: , , , YueHaibing Subject: [PATCH -next] virtiofs: remove unused variable 'fc' Date: Wed, 23 Oct 2019 14:21:30 +0800 Message-ID: <20191023062130.23068-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fs/fuse/virtio_fs.c:983:20: warning: variable fc set but not used [-Wunused-but-set-variable] It is not used since commit 7ee1e2e631db ("virtiofs: No need to check fpq->connected state") Signed-off-by: YueHaibing --- fs/fuse/virtio_fs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 2de8fc0..a5c8604 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -980,7 +980,6 @@ __releases(fiq->lock) { unsigned int queue_id = VQ_REQUEST; /* TODO multiqueue */ struct virtio_fs *fs; - struct fuse_conn *fc; struct fuse_req *req; struct virtio_fs_vq *fsvq; int ret; @@ -993,7 +992,6 @@ __releases(fiq->lock) spin_unlock(&fiq->lock); fs = fiq->priv; - fc = fs->vqs[queue_id].fud->fc; pr_debug("%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u\n", __func__, req->in.h.opcode, req->in.h.unique, -- 2.7.4