usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
Subsystems (2)
PATCH 1/1 usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
From: Chali Anis <[email protected]>
Signed-off-by Chali Anis <[email protected]>
--- drivers/usb/dwc2/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/dwc2/host.c +1 -1
@@ -168,7 +168,7 @@ static int transfer_chunk(struct dwc2 *dwc2, u8 hc, u8 *pid, int in, void *buffer, int num_packets, int xfer_len, int *actual_len, int odd_frame) { - uint32_t hctsiz, hcchar, sub; + uint32_t hctsiz, hcchar, sub = 0;dma_addr_t dma_addr =0 ;int ret =0 ;
Sascha Hauer
AppliedQuoted 1 line · On Mon, 30 Mar 2026 23:23:07 -0400, [email protected] wrote:
Applied, thanks!
[1/1] usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
https://git.pengutronix.de/cgit/barebox/commit/?id=ed017efa3455 (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>