mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
@ 2026-03-31  3:23 chalianis1
  2026-04-13  8:08 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* Re: [PATCH] usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
  2026-03-31  3:23 [PATCH] usb: dwc2: host: initialize sub to fix maybe-uninitialized warning chalianis1
@ 2026-04-13  8:08 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-04-13  8:08 UTC (permalink / raw)
  To: chalianis1; +Cc: barebox


On Mon, 30 Mar 2026 23:23:07 -0400, chalianis1@gmail.com 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,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-13  8:09 UTC | newest]

Thread overview: 2+ messages (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
2026-04-13  8:08 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox