aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2022-02-03 15:36:42 +0000
committerDavid Sterba <[email protected]>2022-03-14 13:13:50 +0100
commitc03475506e3e7fed2c428a953f1fcc01c04aabd5 (patch)
tree23999c6365332a4e739ce2be908a4cab38eb645d /lib/memory-notifier-error-inject.c
parente1f53ed874e2f242e7009c3123f9776c5aec61c3 (diff)
btrfs: stop checking for NULL return from btrfs_get_extent()
At extent_io.c, in the read page and write page code paths, we are testing if the return value from btrfs_get_extent() can be NULL. However that is not possible, as btrfs_get_extent() always returns either an error pointer or a (non-NULL) pointer to an extent map structure. Everywhere else outside extent_io.c we never check for NULL, we always treat any returned value as a non-NULL pointer if it does not encode an error. So check only for the IS_ERR() case at extent_io.c. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions