]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
list-ctrl: Do not return directly without freeing fd
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 14:21:45 +0000 (23:21 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 27 Apr 2019 05:10:49 +0000 (14:10 +0900)
commit8e1b94b8458e603fbbb30a08a5adb68d26eee371
tree88da43db4b8b1bdd6d424f5308200d1c0ae19b0c
parentb0c8a309266c2daf6ebadf9ab14884c6954765a1
list-ctrl: Do not return directly without freeing fd

It was returning an error value without freeding open fd for the device.
This patch replaces 'return' with 'goto' to free fd.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c