From f9e0d07f0886fbf8294bcc7dad821cc6729b51c9 Mon Sep 17 00:00:00 2001 From: Michael Boehmer Date: Mon, 30 May 2022 14:11:01 +0200 Subject: [PATCH] cleanup --- libtrbnet/trbflash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 6d5ce15..ca40c0c 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -718,6 +718,7 @@ static int initTransfer(uint16_t trb_address) if ((manId == flashParamRef.manId) || (manId == flashParamRef.compatibleManId[j])) { match = 1; + break; } j++; @@ -741,7 +742,7 @@ static int initTransfer(uint16_t trb_address) if (imageBuffer == NULL) { abort(); } - + fprintf(stderr, "Found %d Endpoint(s) of group %s\n", counter, FlashTypeStr[flashParamRef.flashType]); @@ -825,7 +826,6 @@ static int writePage(uint16_t trb_address, uint32_t pageNumber, return -1; if ((numBytes > PAGE_SIZE) || (numBytes == 0)) return -1; - /* Copy pageBuffer to trbBuffer */ temp = trbBuffer - 1; for (c = 0; c < numBytes; c++) { -- 2.43.0