Chengguang Xu 38a3499f6d 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>
2018-12-16 09:01:38 -07:00
..
2018-12-16 09:01:38 -07:00
2018-10-25 06:50:48 -07:00
2018-10-16 09:49:52 -06:00
2018-11-18 15:46:03 -07:00
2018-10-17 09:42:30 -06:00
2018-10-17 09:42:30 -06:00
2018-10-15 20:07:56 -06:00
2017-02-20 12:16:15 +01:00
2018-11-10 08:03:47 -07:00
2017-08-18 08:45:29 -06:00
2018-10-16 09:49:36 -06:00
2018-10-16 09:49:18 -06:00
2018-11-09 08:14:14 -07:00
2018-11-10 08:58:48 -06:00
2018-10-15 20:08:24 -06:00
2018-10-26 14:36:21 -07:00