Re: [PATCH] usb: chipidea: udc: initialize bounced_size to avoid coverity warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 14, 2025 at 06:28:15PM +0800, Xu Yang wrote:
> The synopsys covertiy tool complains "Using uninitialized value
> bounced_size." at some condition.
> 
>     sg_dma_len(sg) = min(sg_dma_len(sg), bounced_size);
>                                          ^~~~~~~~~~~~
> Although it can't happen, try remove the warning by initializing it.

No, we don't work around broken tools, fix the tool, don't abuse our
code for that, sorry.

greg k-h




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux