From e4077356b69f6358875279f8f53b4cf4a22fc93b Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Mon, 20 Nov 2023 07:09:33 +0100 Subject: [PATCH] libnvme: fixup error codes The error code is ENOTSUP, not NOTSUP. Signed-off-by: Hannes Reinecke --- src/nvme/linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */