OSDN Git Service

btrfs: Remove unused variable in btrfs_get_extent
authorNikolay Borisov <nborisov@suse.com>
Fri, 1 Dec 2017 09:19:40 +0000 (11:19 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:15 +0000 (16:08 +0100)
commit5c9a702ed1724f1c856c7299fe1faf9b3b5b4eb0
tree29ada08bb11ed4d199b474dd448a4ee1b1dcc266
parent7cfad65297bfe0aa2996cd72d21c898aa84436d9
btrfs: Remove unused variable in btrfs_get_extent

trans was statically assigned to NULL and this never changed over the
course of btrfs_get_extent. So remove any code which checks whether
trans != NULL and just hardcode the fact trans is always NULL.

Resolves-coverity-id: 112806
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c