From: Michael Boehmer Date: Mon, 30 May 2022 12:11:01 +0000 (+0200) Subject: cleanup X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=f9e0d07f0886fbf8294bcc7dad821cc6729b51c9;p=trbnettools.git cleanup --- 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++) {