]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
cleanup
authorMichael Boehmer <mboehmer@ph.tum.de>
Mon, 30 May 2022 12:11:01 +0000 (14:11 +0200)
committerMichael Boehmer <mboehmer@ph.tum.de>
Mon, 30 May 2022 12:11:01 +0000 (14:11 +0200)
libtrbnet/trbflash.c

index 6d5ce151142411637c5e3b9388b64f701faafcc8..ca40c0c0f78f79c33b2a8e213823b50e4c2e9875 100644 (file)
@@ -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++) {