lightnvm: pblk: fix bad error check

Fix bad error check

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

Signed-off-by: Javier González <[email protected]>
Reviewed-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
Javier González 2017-04-22 01:32:46 +02:00 • committed by Jens Axboe
commit f3236cef5a

View file

@ -1273,7 +1273,7 @@ retry_meta:
retry_setup:
if (!pblk_line_set_metadata(pblk, new, cur)) {
new = pblk_line_retry(pblk, new);
if (new)
if (!new)
return NULL;
goto retry_setup;