Btrfs: remove always true check in unlock_up
authorLiu Bo <bo.liu@linux.alibaba.com>
Fri, 18 May 2018 03:00:24 +0000 (11:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 May 2018 14:46:51 +0000 (16:46 +0200)
commitd80bb3f905ccf70b2c4dde541cff7286e6f936e8
tree52dae8e835ae9a714694e5154f4c2ff3fd9c2640
parent662c653bfda58698cf48d7143a39bd3a063fd9c6
Btrfs: remove always true check in unlock_up

As unlock_up() is written as

for () {
   if (!path->locks[i])
       break;
   ...
   if (... && path->locks[i]) {
   }
}

Apparently, @path->locks[i] is always true at this 'if'.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c