From: Hannes Reinecke Date: Mon, 20 Nov 2023 06:09:33 +0000 (+0100) Subject: libnvme: fixup error codes X-Git-Tag: v1.7~21^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e4077356b69f6358875279f8f53b4cf4a22fc93b;p=users%2Fsagi%2Flibnvme.git libnvme: fixup error codes The error code is ENOTSUP, not NOTSUP. Signed-off-by: Hannes Reinecke --- diff --git a/src/nvme/linux.c b/src/nvme/linux.c index 19b1877d..7cb52d27 100644 --- a/src/nvme/linux.c +++ b/src/nvme/linux.c @@ -550,7 +550,7 @@ static int derive_retained_key(int hmac, const char *hostnqn, { nvme_msg(NULL, LOG_ERR, "NVMe TLS is not supported; " "recompile with OpenSSL support.\n"); - errno = NOTSUP; + errno = ENOTSUP; return -1; } @@ -561,7 +561,7 @@ static int gen_tls_identity(const char *hostnqn, const char *subsysnqn, if (version != 0) { nvme_msg(NULL, LOG_ERR, "NVMe TLS 2.0 is not supported; " "recompile with OpenSSL support.\n"); - errno = NOTSUP; + errno = ENOTSUP; return -1; } sprintf(identity, "NVMe0R%02d %s %s", @@ -575,7 +575,7 @@ static int derive_tls_key(int hmac, const char *identity, { nvme_msg(NULL, LOG_ERR, "NVMe TLS is not supported; " "recompile with OpenSSL support.\n"); - errno = NOTSUP; + errno = ENOTSUP; return -1; } #else /* CONFIG_OPENSSL */