[PATCH 05/10] block, nvme: modify rq_integrity_vec function

Christoph Hellwig hch at lst.de
Mon Apr 29 10:11:13 PDT 2024


On Mon, Apr 29, 2024 at 05:04:30PM +0530, Kanchan Joshi wrote:
> >> +	return (struct bio_vec){0};
> > 
> > No need for the 0 here.
>   Um, I did not follow. Need that to keep the compiler happy.
> Do you suggest to change the prototype.

Just removing the NULL as in:

	return (struct bio_vec){ };

compiles just fine here, and at least for non-anonymous struct
initializers we use it all the time.



More information about the Linux-nvme mailing list