Skip to content

Commit 5f5ea0e

Browse files
hreineckekeithbusch
authored andcommitted
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>
1 parent f7e0a54 commit 5f5ea0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static struct key *nvmf_parse_key(int key_id)
637637
}
638638

639639
key = key_lookup(key_id);
640-
if (!IS_ERR(key))
640+
if (IS_ERR(key))
641641
pr_err("key id %08x not found\n", key_id);
642642
else
643643
pr_debug("Using key id %08x\n", key_id);

0 commit comments

Comments
 (0)