]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvme-cli: Update err value to 0 in get_ns_id func.
authorRevanth Rajashekar <revanth.rajashekar@intel.com>
Thu, 21 Nov 2019 18:52:05 +0000 (11:52 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 21 Nov 2019 19:03:23 +0000 (12:03 -0700)
commitc6db225fe16300f85ce08ab1a8eb0ca47d05ebb7
treeba35cf4b9ad7e626bae998d94c64e88ce5e39640
parent972effdf884eb6d04a996cfe65820698b28975df
nvme-cli: Update err value to 0 in get_ns_id func.

Err value should be updated to 0 on success of nvme_get_nsid,
else the File Descriptor is passed on to nvme_status_to_errno
which returns an irrelevant errno.

Signed-off-by: Revanth Rajashekar <revanth.rajashekar@intel.com>
nvme.c