Skip to content

Commit e407735

Browse files
committed
libnvme: fixup error codes
The error code is ENOTSUP, not NOTSUP. Signed-off-by: Hannes Reinecke <[email protected]>
1 parent f284041 commit e407735

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/nvme/linux.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ static int derive_retained_key(int hmac, const char *hostnqn,
550550
{
551551
nvme_msg(NULL, LOG_ERR, "NVMe TLS is not supported; "
552552
"recompile with OpenSSL support.\n");
553-
errno = NOTSUP;
553+
errno = ENOTSUP;
554554
return -1;
555555
}
556556

@@ -561,7 +561,7 @@ static int gen_tls_identity(const char *hostnqn, const char *subsysnqn,
561561
if (version != 0) {
562562
nvme_msg(NULL, LOG_ERR, "NVMe TLS 2.0 is not supported; "
563563
"recompile with OpenSSL support.\n");
564-
errno = NOTSUP;
564+
errno = ENOTSUP;
565565
return -1;
566566
}
567567
sprintf(identity, "NVMe0R%02d %s %s",
@@ -575,7 +575,7 @@ static int derive_tls_key(int hmac, const char *identity,
575575
{
576576
nvme_msg(NULL, LOG_ERR, "NVMe TLS is not supported; "
577577
"recompile with OpenSSL support.\n");
578-
errno = NOTSUP;
578+
errno = ENOTSUP;
579579
return -1;
580580
}
581581
#else /* CONFIG_OPENSSL */

0 commit comments

Comments
 (0)