summaryrefslogtreecommitdiffstats
path: root/Documentation/block
diff options
context:
space:
mode:
authorChengguang Xu2018-12-16 10:35:00 +0100
committerJens Axboe2018-12-16 17:01:38 +0100
commit38a3499f6d0cb15bd673e517b0656807e22bfd24 (patch)
treec28a1a6e770c04dc8e22c5567594ded4fdfe94a1 /Documentation/block
parentaoe: add __exit annotation (diff)
downloadkernel-qcow2-linux-38a3499f6d0cb15bd673e517b0656807e22bfd24.tar.gz
kernel-qcow2-linux-38a3499f6d0cb15bd673e517b0656807e22bfd24.tar.xz
kernel-qcow2-linux-38a3499f6d0cb15bd673e517b0656807e22bfd24.zip
block: loop: check error using IS_ERR instead of IS_ERR_OR_NULL in loop_add()
blk_mq_init_queue() will not return NULL pointer to its caller, so it's better to replace IS_ERR_OR_NULL using IS_ERR in loop_add(). If in the future things change to check NULL pointer inside loop_add(), we should return -ENOMEM as return code instead of PTR_ERR(NULL). Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/block')
0 files changed, 0 insertions, 0 deletions