summaryrefslogtreecommitdiff
path: root/block/kyber-iosched.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2020-03-29 19:08:26 +0300
committerJens Axboe <axboe@kernel.dk>2020-03-29 19:08:26 +0300
commit654a3667df364f778b9b5bcdfb32e545aceb6a51 (patch)
tree572e92f198f6c62cb0ec17b01b5863cca168d93b /block/kyber-iosched.c
parent130879f1ee0e25b0391b8c78b3baac6fe41f4d38 (diff)
downloadlinux-654a3667df364f778b9b5bcdfb32e545aceb6a51.tar.xz
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: 3d745ea5b095a ("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>
Diffstat (limited to 'block/kyber-iosched.c')
0 files changed, 0 insertions, 0 deletions