diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-10-23 14:26:33 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-11-05 13:02:20 +0100 |
commit | f07728d541ebefcf3d2ec7bc99a3bffd052d9f90 (patch) | |
tree | 7b1e6c682ee89e4f751c2d77c43eeeb1cf85e5c0 /.clang-format | |
parent | fca3a45d08782a2bb85e048fb8e3128b1388d7b7 (diff) |
btrfs: clean up NULL checks in qgroup_unreserve_range()
Smatch complains that this code dereferences "entry" before checking
whether it's NULL on the next line. Fortunately, rb_entry() will never
return NULL so it doesn't cause a problem. We can clean up the NULL
checking a bit to silence the warning and make the code more clear.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions