diff options
author | 2020-10-23 14:26:33 +0300 | |
---|---|---|
committer | 2020-11-05 13:02:20 +0100 | |
commit | f07728d541ebefcf3d2ec7bc99a3bffd052d9f90 (patch) | |
tree | 7b1e6c682ee89e4f751c2d77c43eeeb1cf85e5c0 /drivers/usb/cdns3/cdns3-imx.c | |
parent | btrfs: fix min reserved size calculation in merge_reloc_root (diff) | |
download | linux-dev-f07728d541ebefcf3d2ec7bc99a3bffd052d9f90.tar.xz linux-dev-f07728d541ebefcf3d2ec7bc99a3bffd052d9f90.zip |
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 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions