]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite474eab5b035806e2bdf4ebe709dbdc6b8f75513
tree29ada08bb11ed4d199b474dd448a4ee1b1dcc266
parentf1c6947213f8eb89ae5cca0ba99ceffa9c4e96e1
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