aboutsummaryrefslogtreecommitdiffstats
path: root/tools/img2srec.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-07-13 15:19:34 +0200
committerTom Rini <trini@konsulko.com>2024-07-15 12:12:18 -0600
commitb51be8ebcb4ac5605c03f409d5999601bc6244f5 (patch)
tree5387dfca8e649f8e31cc3ec03279c341a924ed92 /tools/img2srec.c
parentdcc7470f049114aef1a5b460758e427d5c9bfcf0 (diff)
downloadu-boot-b51be8ebcb4ac5605c03f409d5999601bc6244f5.tar.gz
tools: Remove duplicate newlines
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'tools/img2srec.c')
-rw-r--r--tools/img2srec.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/img2srec.c b/tools/img2srec.c
index 75efd76e0e3..5a6d3259f3e 100644
--- a/tools/img2srec.c
+++ b/tools/img2srec.c
@@ -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
|*************************************************************************/