block: fix checking return value of blk_mq_init_queue
authorMing Lei <ming.lei@canonical.com>
Fri, 2 Jan 2015 14:25:27 +0000 (14:25 +0000)
committerJens Axboe <axboe@fb.com>
Fri, 2 Jan 2015 17:32:02 +0000 (10:32 -0700)
commit35b489d32fcc37e8735f41aa794b24cf9d1e74f5
treef16c4c7a3148a3ca9c7c149ea6de66fd4423e7c8
parentaed3ea94bdd2ac0a21ed0103d34097e202ee77f6
block: fix checking return value of blk_mq_init_queue

Check IS_ERR_OR_NULL(return value) instead of just return value.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Reduced to IS_ERR() by me, we never return NULL.
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/null_blk.c
drivers/block/nvme-core.c
drivers/block/virtio_blk.c