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

Christoph Hellwig
2022-05-05T13:30:39Z

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);