Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757552AbdIIO3o (ORCPT ); Sat, 9 Sep 2017 10:29:44 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38578 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753731AbdIIO3m (ORCPT ); Sat, 9 Sep 2017 10:29:42 -0400 X-Google-Smtp-Source: AOwi7QBEAc/5CFER7PwPMvA3O2B0npYqCJSmIsK9bQ17RwjiKPRQisfQai+wRuRWCZaKCjIFMRif0g== From: Christos Gkekas To: Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christos Gkekas Subject: [PATCH] btrfs: Clean up dead code in root-tree Date: Sat, 9 Sep 2017 15:29:34 +0100 Message-Id: <1504967374-14144-1-git-send-email-chris.gekas@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 629 Lines: 25 The value of variable 'can_recover' is never used after being set, thus it should be removed. Signed-off-by: Christos Gkekas --- fs/btrfs/root-tree.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 95bcc3c..3338407 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c @@ -226,10 +226,6 @@ int btrfs_find_orphan_roots(struct btrfs_fs_info *fs_info) struct btrfs_root *root; int err = 0; int ret; - bool can_recover = true; - - if (sb_rdonly(fs_info->sb)) - can_recover = false; path = btrfs_alloc_path(); if (!path) -- 2.7.4