Skip to content

Commit

Permalink
nvme-fabrics: typo in nvmf_parse_key()
Browse files Browse the repository at this point in the history
Of course we should use the key if there is no error ...

Signed-off-by: Hannes Reinecke <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
  • Loading branch information
hreinecke authored and keithbusch committed Mar 4, 2024
1 parent f7e0a54 commit 5f5ea0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/fabrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f5ea0e

Please sign in to comment.