lightnvm: wrong return value and redundant free
authorWenwei Tao <ww.tao0320@gmail.com>
Fri, 20 Nov 2015 12:47:53 +0000 (13:47 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 20 Nov 2015 15:33:14 +0000 (08:33 -0700)
commit480fc0db819d706ea5608545a12d33cf8d5a31ab
tree0d3b5af91393d96ef5903327a85ec549b00cf052
parent54514aa465e94316a4bf1c5dfe970536bec3e76f
lightnvm: wrong return value and redundant free

The return value should be non-zero under error conditions.
Remove nvme_free(dev) to avoid free dev more than once.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c