[PATCH 3/3] nvmet-auth: use helper for auth send/recv cmd prep

Christoph Hellwig hch at lst.de
Mon May 22 23:56:55 PDT 2023


> +	u16 sts = nvmet_auth_check_secp_spsp(req);
> +
> +	return sts ? sts : nvmet_auth_alloc_transfer_buffer(req, buf, len);

I'd much prefer just spelling things out here as usual:

	if (sts)
		return sts;
	return nvmet_auth_alloc_transfer_buffer(req, buf, len);




More information about the Linux-nvme mailing list