[PATCH] nvme-common: simplify nvme_auth_generate_key
Hannes Reinecke
hare at suse.de
Mon Jan 9 01:37:20 PST 2023
On 1/8/23 19:41, Christoph Hellwig wrote:
> Return the key or NULL on success, and an ERR_PTR on failure
> instead of passing a separate ret_key argument to return the key.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
> drivers/nvme/common/auth.c | 20 +++++---------------
> drivers/nvme/host/auth.c | 22 +++++++++++++---------
> drivers/nvme/host/core.c | 14 ++++++--------
> include/linux/nvme-auth.h | 2 +-
> 4 files changed, 25 insertions(+), 33 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
More information about the Linux-nvme
mailing list