]> git.baikalelectronics.ru Git - kernel.git/commit
block: return NULL in blk_alloc_queue() on error
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Sun, 29 Mar 2020 16:08:26 +0000 (10:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Mar 2020 16:08:26 +0000 (10:08 -0600)
commit356cc6e637cfe70c8b42398fca940d78cbdce24c
tree572e92f198f6c62cb0ec17b01b5863cca168d93b
parent63b9d464a02c3c7261246926d36e4e56acdbd6e7
block: return NULL in blk_alloc_queue() on error

This patch fixes follwoing warning:

block/blk-core.c: In function ‘blk_alloc_queue’:
block/blk-core.c:558:10: warning: returning ‘int’ from a function with return type ‘struct request_queue *’ makes pointer from integer without a cast [-Wint-conversion]
   return -EINVAL;

Fixes: 92c2c7002ea11 ("block: simplify queue allocation")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c