Skip to content
Commit 898df244 authored by Changcheng Deng's avatar Changcheng Deng Committed by Jens Axboe
Browse files

io_uring: Use ERR_CAST() instead of ERR_PTR(PTR_ERR())



Use ERR_CAST() instead of ERR_PTR(PTR_ERR()).
This makes it more readable and also fix this warning detected by
err_cast.cocci:
./fs/io_uring.c: WARNING: 3208: 11-18: ERR_CAST can be used with buf

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarChangcheng Deng <deng.changcheng@zte.com.cn>
Link: https://lore.kernel.org/r/20211020084948.1038420-1-deng.changcheng@zte.com.cn


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3b44b371
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment