[PATCH v4 3/5] nvme: refactor nvme_submit_user_cmd()

Christoph Hellwig hch at lst.de
Thu May 5 06:30:26 PDT 2022


On Thu, May 05, 2022 at 11:36:14AM +0530, Kanchan Joshi wrote:
> +{
> +	struct bio_integrity_payload *bip = bio_integrity(bio);
> +
> +	return bip ? bvec_virt(bip->bip_vec) : NULL;
> +}

Nit, I'd prefer this as the slightly more verbose:

	if (!bip)
		return NULL;
	return bvec_virt(bip->bip_vec);



More information about the Linux-nvme mailing list