Skip to content
Commit 47255491 authored by zhong jiang's avatar zhong jiang Committed by Jens Axboe
Browse files

block/bsg-lib: use PTR_ERR_OR_ZERO to simplify the flow path



Simplify the code by using the PTR_ERR_OR_ZERO, instead of the
open code. It is better.

Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 08fcf813
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment