Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3436201pxa; Tue, 25 Aug 2020 23:31:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK0v7EB+tVzWfptPrK+IkQzhQFErACyZQtAyJ4Yp/z38OP/ODRMK7w8ONy875weCD1Jwmz X-Received: by 2002:a17:906:94d9:: with SMTP id d25mr12599833ejy.104.1598423503003; Tue, 25 Aug 2020 23:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598423502; cv=none; d=google.com; s=arc-20160816; b=dNAaxvTJ/PZ5GHQBXAfi5HTu6YIYXPqq2N95xMenCwp9PN1GacpP3waQ1T3CGux2ZS aUXK1k0y4GQlnVUtO4+JIAYKUZJhaFEM0GmJOKXXs/AOFPc3/9lNaQi6QmgGiR9jP81o R6k0ZS4/cZiIX/MNHGKS7zuSwCzUwMZsW41a30PaetJ8LbGjOUGSUihT+q90f8PIcxjs RkhBYTBv5rCcg4uVDeF2LoI8egla4v69CDZJYGkgMaoEfVhHCSYAI9FMwbIwtPWCOjmf JTuK/uJ8oClvaCYDM9WQYn13ORWK4yl34DJ5WW4gsyXTTmh+B/HkHYo0gwfW6Keghcda ItaQ== 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=u2ewPyopkqbHw63OS/hwyJ5TYTQ5Rq/tkKnEz2MfBLc=; b=OIFvhLvRI8WxLRDgpSV/Y/1r1klwRREDaeueJz5xWT5YaaFyOTseuN2EBQRMtLBJxJ e21ur7LIUTV1z+o4x1peUfuc5V4EspoaewAO5XPddFu/JFS6cTROiEoIYT2CPAH65MAu gOwYVjo9JEeUJWrTOAa/SuqPwDmS1OT39DhIYvs5lK52+L9HctevVj7UQVwzG/qUqv8q 3ZX3MeClQrA3nEmjymFr8pvfPRDDVrCb9OxZ0ctn4xmWQrQCE91D/24N9aOG0Xul+O9r ydQGhIfY8ycLpqjOT305BAwT7A7tpFh2oG5NT7//eqHwC4Pf3cdovjqhq348+rnlDMvN YvOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si980230ejc.408.2020.08.25.23.31.19; Tue, 25 Aug 2020 23:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbgHZG2O (ORCPT + 99 others); Wed, 26 Aug 2020 02:28:14 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:10323 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725786AbgHZG2M (ORCPT ); Wed, 26 Aug 2020 02:28:12 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 09B4238B05C1D0E2A5AF; Wed, 26 Aug 2020 14:28:09 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Wed, 26 Aug 2020 14:27:58 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] btrfs: Remove unused variable 'fs_info' Date: Wed, 26 Aug 2020 14:27:52 +0800 Message-ID: <20200826062752.20912-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fs/btrfs/volumes.c: In function ‘btrfs_rm_dev_replace_free_srcdev’: fs/btrfs/volumes.c:2217:24: warning: unused variable ‘fs_info’ [-Wunused-variable] struct btrfs_fs_info *fs_info = srcdev->fs_info; ^~~~~~~ Caused by commit 65237ee3b6b3 ("btrfs: get fs_info from device in btrfs_rm_dev_replace_free_srcdev") Reported-by: Hulk Robot Signed-off-by: YueHaibing --- fs/btrfs/volumes.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index ec62fc0ec113..b775ed5d3737 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2214,7 +2214,6 @@ void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) { - struct btrfs_fs_info *fs_info = srcdev->fs_info; struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; mutex_lock(&uuid_mutex); -- 2.17.1