aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2024-11-25 09:13:24 +1030
committerDavid Sterba <dsterba@suse.com>2025-01-13 14:53:14 +0100
commit27602f1d1b6edfad7694b9979b86860e0bc00b36 (patch)
tree9695b2c3559e3054ac1ff3e06b2b2c3d9b4f1692 /fs/btrfs/send.c
parentbtrfs: selftests: add delayed ref self test cases (diff)
downloadwireguard-linux-27602f1d1b6edfad7694b9979b86860e0bc00b36.tar.xz
wireguard-linux-27602f1d1b6edfad7694b9979b86860e0bc00b36.zip
btrfs: use PTR_ERR() instead of PTR_ERR_OR_ZERO() for btrfs_get_extent()
The function btrfs_get_extent() will only return an PTR_ERR() or a valid extent map pointer. It will not return NULL. Thus the usage of PTR_ERR_OR_ZERO() inside submit_one_sector() is not needed, use plain PTR_ERR() instead, and that is the only usage of PTR_ERR_OR_ZERO() after btrfs_get_extent(). Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.c')
0 files changed, 0 insertions, 0 deletions