diff options
author | Hannes Reinecke | 2024-02-21 14:45:30 +0100 |
---|---|---|
committer | Keith Busch | 2024-03-04 08:26:30 -0800 |
commit | 5f5ea0e4916874098ee818f40156fc35dba2bcf9 (patch) | |
tree | 3e7a996ed9428e1a7ea0e70f7169b9f67043d2a0 /drivers/nvme | |
parent | f7e0a545f7311691fbcabbb85238c8e4dd1a7c01 (diff) |
nvme-fabrics: typo in nvmf_parse_key()
Of course we should use the key if there is no error ...
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/fabrics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index 3499acbf6a82..ab5ac219b70a 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -637,7 +637,7 @@ static struct key *nvmf_parse_key(int key_id) } key = key_lookup(key_id); - if (!IS_ERR(key)) + if (IS_ERR(key)) pr_err("key id %08x not found\n", key_id); else pr_debug("Using key id %08x\n", key_id); |