Coly Li 3eba5e0b24 bcache: avoid NULL checking to c->root in run_cache_set()
In run_cache_set() after c->root returned from bch_btree_node_get(), it
is checked by IS_ERR_OR_NULL(). Indeed it is unncessary to check NULL
because bch_btree_node_get() will not return NULL pointer to caller.

This patch replaces IS_ERR_OR_NULL() by IS_ERR() for the above reason.

Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20231120052503.6122-11-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-11-20 09:17:51 -07:00
..
2022-09-19 11:12:35 -06:00
2023-06-27 14:14:30 -07:00
2021-04-11 08:37:55 -06:00
2023-10-19 14:47:33 -04:00
2023-10-19 14:47:33 -04:00
2022-12-07 09:43:12 -07:00
2023-10-19 14:47:33 -04:00