]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: handle only applicable errors returned by btrfs_get_extent
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 11 Apr 2017 08:57:15 +0000 (11:57 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:27 +0000 (14:07 +0200)
commitfa8ec48d44e55fc6f3520ca3532c204c4c262d4b
tree86825014e730ea7a59512c8f8526b260ba00cf2a
parentc84b811b777eb61c526fa62cb39463568c31493c
Btrfs: handle only applicable errors returned by btrfs_get_extent

btrfs_get_extent() never returns NULL pointers, so this code introduces
a static checker warning.

The btrfs_get_extent() is a bit complex, but trust me that it doesn't
return NULLs and also if it did we would trigger the BUG_ON(!em) before
the last return statement.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[ updated subject ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c
fs/btrfs/inode.c