commit | 4725549192c9633b6a3740bf23770cb758bee4a0 | [log] [tgz] |
---|---|---|
author | zhong jiang <zhongjiang@huawei.com> | Wed Aug 01 00:13:14 2018 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Aug 01 09:13:03 2018 -0600 |
tree | f914b33624a7650377e265e68eb34bde3c35983a | |
parent | 08fcf813281ebcf72c69487c1501ad91b7121cdb [diff] |
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 <jthumshirn@suse.de> Signed-off-by: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>