tools: Remove duplicate newlines
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
@@ -109,7 +109,6 @@ static char* ExtractDecimal (uint32_t* value, char* getPtr)
|
||||
return getPtr;
|
||||
} /* ExtractDecimal */
|
||||
|
||||
|
||||
static void ExtractNumber (uint32_t* value, char* getPtr)
|
||||
{
|
||||
bool neg = false;
|
||||
@@ -129,7 +128,6 @@ static void ExtractNumber (uint32_t* value, char* getPtr)
|
||||
if (neg) *value = -(*value);
|
||||
} /* ExtractNumber */
|
||||
|
||||
|
||||
static uint8_t* ExtractWord(uint16_t* value, uint8_t* buffer)
|
||||
{
|
||||
uint16_t x;
|
||||
@@ -139,7 +137,6 @@ static uint8_t* ExtractWord(uint16_t* value, uint8_t* buffer)
|
||||
return buffer;
|
||||
} /* ExtractWord */
|
||||
|
||||
|
||||
static uint8_t* ExtractLong(uint32_t* value, uint8_t* buffer)
|
||||
{
|
||||
uint32_t x;
|
||||
@@ -151,14 +148,12 @@ static uint8_t* ExtractLong(uint32_t* value, uint8_t* buffer)
|
||||
return buffer;
|
||||
} /* ExtractLong */
|
||||
|
||||
|
||||
static uint8_t* ExtractBlock(uint16_t count, uint8_t* data, uint8_t* buffer)
|
||||
{
|
||||
while (count--) *data++ = *buffer++;
|
||||
return buffer;
|
||||
} /* ExtractBlock */
|
||||
|
||||
|
||||
static char* WriteHex(char* pa, uint8_t value, uint16_t* pCheckSum)
|
||||
{
|
||||
uint16_t temp;
|
||||
@@ -173,7 +168,6 @@ static char* WriteHex(char* pa, uint8_t value, uint16_t* pCheckSum)
|
||||
return pa;
|
||||
}
|
||||
|
||||
|
||||
static char* BuildSRecord(char* pa, uint16_t sType, uint32_t addr,
|
||||
const uint8_t* data, int nCount)
|
||||
{
|
||||
@@ -223,7 +217,6 @@ static char* BuildSRecord(char* pa, uint16_t sType, uint32_t addr,
|
||||
return pa;
|
||||
}
|
||||
|
||||
|
||||
static void ConvertELF(char* fileName, uint32_t loadOffset)
|
||||
{
|
||||
FILE* file;
|
||||
@@ -240,7 +233,6 @@ static void ConvertELF(char* fileName, uint32_t loadOffset)
|
||||
char srecLine[128];
|
||||
char *hdr_name;
|
||||
|
||||
|
||||
/* open file */
|
||||
if ((file = fopen(fileName,"rb")) == NULL) {
|
||||
fprintf (stderr, "Can't open %s: %s\n", fileName, strerror(errno));
|
||||
@@ -348,7 +340,6 @@ static void ConvertELF(char* fileName, uint32_t loadOffset)
|
||||
fclose(file);
|
||||
} /* ConvertELF */
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
| MAIN
|
||||
|*************************************************************************/
|
||||
|
Reference in New Issue
Block a user