* [PATCH] usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
@ 2026-03-31 3:23 chalianis1
0 siblings, 0 replies; only message in thread
From: chalianis1 @ 2026-03-31 3:23 UTC (permalink / raw)
To: s.hauer; +Cc: barebox, Chali Anis
From: Chali Anis <chalianis1@gmail.com>
Signed-off-by: Chali Anis <chalianis1@gmail.com>
---
drivers/usb/dwc2/host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/host.c b/drivers/usb/dwc2/host.c
index a9b25aeeaa11..93994f0be3be 100644
--- a/drivers/usb/dwc2/host.c
+++ b/drivers/usb/dwc2/host.c
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-31 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-31 3:23 [PATCH] usb: dwc2: host: initialize sub to fix maybe-uninitialized warning chalianis1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox