f2fs: remove an obsolete variable
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 4 May 2016 16:58:10 +0000 (09:58 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 7 May 2016 17:32:31 +0000 (10:32 -0700)
This patch removes an obsolete variable used in add_free_nid.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c

index 78b98db48805fa3d58a0edcfad515a77e2f344f4..264abe08bafbcba76ce9958dc85186eee7ef1b29 100644 (file)
@@ -1690,7 +1690,6 @@ static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build)
        struct f2fs_nm_info *nm_i = NM_I(sbi);
        struct free_nid *i;
        struct nat_entry *ne;
-       bool allocated = false;
 
        if (!available_free_memory(sbi, FREE_NIDS))
                return -1;
@@ -1704,8 +1703,6 @@ static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build)
                ne = __lookup_nat_cache(nm_i, nid);
                if (ne && (!get_nat_flag(ne, IS_CHECKPOINTED) ||
                                nat_get_blkaddr(ne) != NULL_ADDR))
-                       allocated = true;
-               if (allocated)
                        return 0;
        }