The Clang thread-safety analyzer does not support testing return values with "< 0". Hence change the "< 0" test into "!= 0". This is fine since the radix_tree_maybe_preload() return value is <= 0. Cc: Yu Kuai Cc: Jan Kara Signed-off-by: Bart Van Assche --- block/blk-ioc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-ioc.c b/block/blk-ioc.c index d15918d7fabb..0bf78aebc887 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c @@ -364,7 +364,7 @@ static struct io_cq *ioc_create_icq(struct request_queue *q) if (!icq) return NULL; - if (radix_tree_maybe_preload(GFP_ATOMIC) < 0) { + if (radix_tree_maybe_preload(GFP_ATOMIC) != 0) { kmem_cache_free(et->icq_cache, icq); return NULL; }