Skip to content

Commit 7821981

Browse files
committed
linux: rename __nvme_insert_tls_key() to __nvme_import_tls_key()
The function __nvme_insert_tls_key() is only called from __nvme_import_keys_from_config(), so rename it to __nvme_import_tls_key() to avoid a name clash with __nvme_insert_tls_key_versioned(). Signed-off-by: Hannes Reinecke <[email protected]>
1 parent 2c692a5 commit 7821981

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nvme/linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ long nvme_revoke_tls_key(const char *keyring, const char *key_type,
14261426
return keyctl_revoke(key);
14271427
}
14281428

1429-
static long __nvme_insert_tls_key(long keyring_id,
1429+
static long __nvme_import_tls_key(long keyring_id,
14301430
const char *hostnqn, const char *subsysnqn,
14311431
const char *identity, const char *key)
14321432
{
@@ -1505,7 +1505,7 @@ int __nvme_import_keys_from_config(nvme_host_t h, nvme_ctrl_t c,
15051505
id = nvme_lookup_key("psk", identity);
15061506

15071507
if (!id)
1508-
id = __nvme_insert_tls_key(kr_id, hostnqn,
1508+
id = __nvme_import_tls_key(kr_id, hostnqn,
15091509
subsysnqn, identity, key);
15101510

15111511
if (id <= 0) {

0 commit comments

Comments
 (0)