Re: [PATCH] xhci: Fix bcdUSB initialization

From: Dan Carpenter
Date: Thu Feb 27 2025 - 15:16:31 EST


On Thu, Feb 27, 2025 at 11:36:24AM -0800, Greg KH wrote:
> On Fri, Feb 28, 2025 at 01:04:00AM +0530, Abhishek Tamboli wrote:
> > Initialize bcdUSB to 0 to prevent undefined behaviour
> > if accessed without being explicitly set.
>
> Is it actually accessed without being set? If so, please explain it and
> also how the compiler is somehow missing this already?
>

This is a Smatch warning, not a compiler warning.

regards,
dan carpenter