Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Johannes Thumshirn <[email protected]> Signed-off-by: zhong jiang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information