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