aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blk_types.h
diff options
context:
space:
mode:
authorZheng Wang <zyytlz.wz@163.com>2023-06-15 20:12:21 +0800
committerJens Axboe <axboe@kernel.dk>2023-06-15 07:30:43 -0600
commit028ddcac477b691dd9205c92f991cc15259d033e (patch)
tree2a41a9170410e3de2bb6112a036d8eeff1d07822 /include/linux/blk_types.h
parentbcache: Remove dead references to cache_readaheads (diff)
downloadlinux-rng-028ddcac477b691dd9205c92f991cc15259d033e.tar.xz
linux-rng-028ddcac477b691dd9205c92f991cc15259d033e.zip
bcache: Remove unnecessary NULL point check in node allocations
Due to the previous fix of __bch_btree_node_alloc, the return value will never be a NULL pointer. So IS_ERR is enough to handle the failure situation. Fix it by replacing IS_ERR_OR_NULL check by an IS_ERR check. Fixes: cafe56359144 ("bcache: A block layer cache") Cc: stable@vger.kernel.org Signed-off-by: Zheng Wang <zyytlz.wz@163.com> Signed-off-by: Coly Li <colyli@suse.de> Link: https://lore.kernel.org/r/20230615121223.22502-5-colyli@suse.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk_types.h')
0 files changed, 0 insertions, 0 deletions