commit | 5565b0ca50b5b82e0439f6e4dc7fbb122cd0b025 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Mar 30 00:05:23 2018 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Mar 29 17:29:09 2018 -0600 |
tree | 9f925c9829dbf3c234249e9e448ed7523b066899 | |
parent | 9156f360a77f9b975645a66af5ae8f7f68eccded [diff] |
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>