Re: [PATCH 4/5] btrfs: Remove redundant NULL check

2017-12-06 Thread David Sterba
On Fri, Dec 01, 2017 at 11:19:43AM +0200, Nikolay Borisov wrote: > Before returning hole_em in btrfs_get_fiemap_extent we check if it's different > than null. However, by the time this null check is triggered we already know > hole_em is not null because it means it points to the em we found and

[PATCH 4/5] btrfs: Remove redundant NULL check

2017-12-01 Thread Nikolay Borisov
Before returning hole_em in btrfs_get_fiemap_extent we check if it's different than null. However, by the time this null check is triggered we already know hole_em is not null because it means it points to the em we found and it has already been dereferenced. Signed-off-by: Nikolay Borisov