diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-05-30 21:34:12 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-05-30 21:34:12 +0000 |
commit | 9188a48d4a76281c11cb75497cdff74b40662d4c (patch) | |
tree | 36609c030ddd52ea1c11a22308f4cefe19d002c4 /lib/sg_lib.c | |
parent | 919290b79eb6649d6d05242180ddb3944ca9521b (diff) | |
download | sg3_utils-9188a48d4a76281c11cb75497cdff74b40662d4c.tar.gz |
define SG_NVME_VPD_NICR sg3_utils (vendor) specific VPD page; work with SG_LIB_LBA_OUT_OF_RANGE
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@775 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_lib.c')
-rw-r--r-- | lib/sg_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sg_lib.c b/lib/sg_lib.c index b593d9b6..d127f3ba 100644 --- a/lib/sg_lib.c +++ b/lib/sg_lib.c @@ -1934,7 +1934,7 @@ sg_convert_errno(int os_err_num) if (os_err_num <= 0) { if (os_err_num < 0) return SG_LIB_OS_BASE_ERR; - return os_err_num; + return os_err_num; /* os_err_num of 0 maps to 0 */ } if (os_err_num < (SG_LIB_CAT_MALFORMED - SG_LIB_OS_BASE_ERR)) return SG_LIB_OS_BASE_ERR + os_err_num; |