Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9986277e authored by Dan Carpenter's avatar Dan Carpenter Committed by David Sterba
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
[ updated subject ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 82bafb38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment