From c05e4c5a2a1c3e7ba7e322b7245b293d4c8b6e0b Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 13 Jul 2023 09:38:44 -0700 Subject: [PATCH] jtag/drivers/xds110: Fix compiler warning. Compiler would complain that `written` was used without being initialized. Signed-off-by: Tim Newsome Change-Id: Ibada85dcccfca6f1269c584cdbc4f2e3b93bb8f3 --- src/jtag/drivers/xds110.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/jtag/drivers/xds110.c b/src/jtag/drivers/xds110.c index 371dc8803..1d5160da2 100644 --- a/src/jtag/drivers/xds110.c +++ b/src/jtag/drivers/xds110.c @@ -598,10 +598,6 @@ static bool usb_send_command(uint16_t size) /* Send the data via the USB connection */ success = usb_write(xds110.write_packet, (int)size, &written); - /* Check if the correct number of bytes was written */ - if (written != (int)size) - success = false; - return success; }