Re: [PATCH 1/5] btrfs: Remove dead code

2017-12-04 Thread David Sterba
On Fri, Dec 01, 2017 at 11:19:40AM +0200, Nikolay Borisov wrote: > 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. This fixes CID#112806 >

[PATCH 1/5] btrfs: Remove dead code

2017-12-01 Thread Nikolay Borisov
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. This fixes CID#112806 Signed-off-by: Nikolay Borisov --- fs/btrfs/inode.c | 9 + 1 file