]> asedeno.scripts.mit.edu Git - linux.git/commit
lightnvm: pblk: remove some unnecessary NULL checks
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Mar 2018 22:05:23 +0000 (00:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Mar 2018 23:29:09 +0000 (17:29 -0600)
commit5565b0ca50b5b82e0439f6e4dc7fbb122cd0b025
tree9f925c9829dbf3c234249e9e448ed7523b066899
parent9156f360a77f9b975645a66af5ae8f7f68eccded
lightnvm: pblk: remove some unnecessary NULL checks

Smatch complains that flush_workqueue() dereferences the work queue
pointer but then we check if it's NULL on the next line when it's too
late.  These NULL checks can be removed because the module won't load if
we can't allocate the work queues.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-gc.c