lightnvm: pblk: fix bad error check
authorJavier González <jg@lightnvm.io>
Fri, 21 Apr 2017 23:32:46 +0000 (01:32 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 23 Apr 2017 22:57:52 +0000 (16:57 -0600)
commitf3236cef5a206c27a624b8a813ddc1ebc4c6637a
treea9cc15a8931ce2bb03a45d36cb825e2baf24b45f
parent3dc001f343659e4732b4ff6da1c28edbd56c6e15
lightnvm: pblk: fix bad error check

Fix bad error check

Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target"

Signed-off-by: Javier González <javier@cnexlabs.com>
Reviewed-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/pblk-core.c