lightnvm: refactor spin_unlock in gennvm_get_blk
authorWenwei Tao <ww.tao0320@gmail.com>
Sun, 6 Dec 2015 10:25:45 +0000 (11:25 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 7 Dec 2015 16:14:19 +0000 (09:14 -0700)
commite9b76a80f1f165cb031f62128dc07d219e29f5a3
tree65a686e68c156534c4be0dc57fc84a6457db0c1a
parentd3d1a43842077c53e22dedaebfe7cb52022b18e1
lightnvm: refactor spin_unlock in gennvm_get_blk

The spin_unlock is duplicated multiple times. Jump to a single unlock
to improve the code flow.

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/gennvm.c