Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment