commit | 9986277e0e4ce10fd37bf853fe22ba429a967a45 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Apr 11 11:57:15 2017 +0300 |
committer | David Sterba <dsterba@suse.com> | Tue Apr 18 14:07:27 2017 +0200 |
tree | 86825014e730ea7a59512c8f8526b260ba00cf2a | |
parent | 82bafb38c2d6bf3b9ab91bde448c08b8154660c1 [diff] |
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>