Re: [PATCH 2/2] usb: xhci: Fix unassigned variable 'bcdUSB' in xhci_create_usb3x_bos_desc()

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

 



On 2/11/2025 2:53 PM, Selvarasu Ganesan wrote:
> Fix the following smatch error:
> drivers/usb/host/xhci-hub.c:71 xhci_create_usb3x_bos_desc() error: unassigned variable 'bcdUSB'
>
> Fixes: eb02aaf21f29 ("usb: xhci: Rewrite xhci_create_usb3_bos_desc()")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Selvarasu Ganesan <selvarasu.g@xxxxxxxxxxx>
> ---
>   drivers/usb/host/xhci-hub.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
> index 9693464c0520..5715a8bdda7f 100644
> --- a/drivers/usb/host/xhci-hub.c
> +++ b/drivers/usb/host/xhci-hub.c
> @@ -39,7 +39,7 @@ static int xhci_create_usb3x_bos_desc(struct xhci_hcd *xhci, char *buf,
>   	struct usb_ss_cap_descriptor	*ss_cap;
>   	struct usb_ssp_cap_descriptor	*ssp_cap;
>   	struct xhci_port_cap		*port_cap = NULL;
> -	u16				bcdUSB;
> +	u16				bcdUSB = 0;
>   	u32				reg;
>   	u32				min_rate = 0;
>   	u8				min_ssid;


Hello Maintainers,

Please ignore this changes as its duplicate of 
https://lore.kernel.org/lkml/1931444790.41739322783086.JavaMail.epsvc@epcpadp2new/


Thanks,

Selva





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux