The error code is ENOTSUP, not NOTSUP.
Signed-off-by: Hannes Reinecke <hare@suse.de>
{
nvme_msg(NULL, LOG_ERR, "NVMe TLS is not supported; "
"recompile with OpenSSL support.\n");
- errno = NOTSUP;
+ errno = ENOTSUP;
return -1;
}
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",
{
nvme_msg(NULL, LOG_ERR, "NVMe TLS is not supported; "
"recompile with OpenSSL support.\n");
- errno = NOTSUP;
+ errno = ENOTSUP;
return -1;
}
#else /* CONFIG_OPENSSL */