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:
Marek Vasut 2024-07-13 15:19:34 +02:00 committed by Tom Rini
parent dcc7470f04
commit b51be8ebcb
10 changed files with 0 additions and 21 deletions

2
tools/env/fw_env.h vendored
View file

@ -94,7 +94,6 @@ int fw_env_set(int argc, char *argv[], struct env_opts *opts);
*/ */
int fw_parse_script(char *fname, struct env_opts *opts); int fw_parse_script(char *fname, struct env_opts *opts);
/** /**
* fw_env_open() - read enviroment from flash into RAM cache * fw_env_open() - read enviroment from flash into RAM cache
* *
@ -151,7 +150,6 @@ int fw_env_flush(struct env_opts *opts);
*/ */
int fw_env_close(struct env_opts *opts); int fw_env_close(struct env_opts *opts);
/** /**
* fw_env_version - return the current version of the library * fw_env_version - return the current version of the library
* *

View file

@ -48,7 +48,6 @@
#define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE) #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
#ifdef ENV_IS_EMBEDDED #ifdef ENV_IS_EMBEDDED
# include <env_internal.h> # include <env_internal.h>
extern unsigned int env_size; extern unsigned int env_size;

View file

@ -102,7 +102,6 @@ static void print_ansi_colour(FILE *fout, int col)
fprintf(fout, "\033[1;%dm", col + 30); fprintf(fout, "\033[1;%dm", col + 30);
} }
/** /**
* value_add() - Add a new value to our list of things to grep for * value_add() - Add a new value to our list of things to grep for
* *

View file

@ -45,7 +45,6 @@ extern "C" {
#endif #endif
#endif /* alloca not defined. */ #endif /* alloca not defined. */
#include "serial.h" #include "serial.h"
#include "error.h" #include "error.h"
#include "remote.h" #include "remote.h"
@ -313,7 +312,6 @@ static int remote_binary_checked;
? (REGISTER_BYTES * 2 + 32) \ ? (REGISTER_BYTES * 2 + 32) \
: 400) : 400)
/* This variable sets the number of bytes to be written to the target /* This variable sets the number of bytes to be written to the target
in a single packet. Normally PBUFSIZ is satisfactory, but some in a single packet. Normally PBUFSIZ is satisfactory, but some
targets need smaller values (perhaps because the receiving end targets need smaller values (perhaps because the receiving end

View file

@ -256,7 +256,6 @@ time_t imagetool_get_source_date(
* for ex. default_image.c, fit_image.c * for ex. default_image.c, fit_image.c
*/ */
void pbl_load_uboot(int fd, struct image_tool_params *mparams); void pbl_load_uboot(int fd, struct image_tool_params *mparams);
int zynqmpbif_copy_image(int fd, struct image_tool_params *mparams); int zynqmpbif_copy_image(int fd, struct image_tool_params *mparams);
int imx8image_copy_image(int fd, struct image_tool_params *mparams); int imx8image_copy_image(int fd, struct image_tool_params *mparams);

View file

@ -109,7 +109,6 @@ static char* ExtractDecimal (uint32_t* value, char* getPtr)
return getPtr; return getPtr;
} /* ExtractDecimal */ } /* ExtractDecimal */
static void ExtractNumber (uint32_t* value, char* getPtr) static void ExtractNumber (uint32_t* value, char* getPtr)
{ {
bool neg = false; bool neg = false;
@ -129,7 +128,6 @@ static void ExtractNumber (uint32_t* value, char* getPtr)
if (neg) *value = -(*value); if (neg) *value = -(*value);
} /* ExtractNumber */ } /* ExtractNumber */
static uint8_t* ExtractWord(uint16_t* value, uint8_t* buffer) static uint8_t* ExtractWord(uint16_t* value, uint8_t* buffer)
{ {
uint16_t x; uint16_t x;
@ -139,7 +137,6 @@ static uint8_t* ExtractWord(uint16_t* value, uint8_t* buffer)
return buffer; return buffer;
} /* ExtractWord */ } /* ExtractWord */
static uint8_t* ExtractLong(uint32_t* value, uint8_t* buffer) static uint8_t* ExtractLong(uint32_t* value, uint8_t* buffer)
{ {
uint32_t x; uint32_t x;
@ -151,14 +148,12 @@ static uint8_t* ExtractLong(uint32_t* value, uint8_t* buffer)
return buffer; return buffer;
} /* ExtractLong */ } /* ExtractLong */
static uint8_t* ExtractBlock(uint16_t count, uint8_t* data, uint8_t* buffer) static uint8_t* ExtractBlock(uint16_t count, uint8_t* data, uint8_t* buffer)
{ {
while (count--) *data++ = *buffer++; while (count--) *data++ = *buffer++;
return buffer; return buffer;
} /* ExtractBlock */ } /* ExtractBlock */
static char* WriteHex(char* pa, uint8_t value, uint16_t* pCheckSum) static char* WriteHex(char* pa, uint8_t value, uint16_t* pCheckSum)
{ {
uint16_t temp; uint16_t temp;
@ -173,7 +168,6 @@ static char* WriteHex(char* pa, uint8_t value, uint16_t* pCheckSum)
return pa; return pa;
} }
static char* BuildSRecord(char* pa, uint16_t sType, uint32_t addr, static char* BuildSRecord(char* pa, uint16_t sType, uint32_t addr,
const uint8_t* data, int nCount) const uint8_t* data, int nCount)
{ {
@ -223,7 +217,6 @@ static char* BuildSRecord(char* pa, uint16_t sType, uint32_t addr,
return pa; return pa;
} }
static void ConvertELF(char* fileName, uint32_t loadOffset) static void ConvertELF(char* fileName, uint32_t loadOffset)
{ {
FILE* file; FILE* file;
@ -240,7 +233,6 @@ static void ConvertELF(char* fileName, uint32_t loadOffset)
char srecLine[128]; char srecLine[128];
char *hdr_name; char *hdr_name;
/* open file */ /* open file */
if ((file = fopen(fileName,"rb")) == NULL) { if ((file = fopen(fileName,"rb")) == NULL) {
fprintf (stderr, "Can't open %s: %s\n", fileName, strerror(errno)); 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); fclose(file);
} /* ConvertELF */ } /* ConvertELF */
/************************************************************************* /*************************************************************************
| MAIN | MAIN
|*************************************************************************/ |*************************************************************************/

View file

@ -5,7 +5,6 @@
* Peng Fan <peng.fan@nxp.com> * Peng Fan <peng.fan@nxp.com>
*/ */
#include "imagetool.h" #include "imagetool.h"
#include <image.h> #include <image.h>
#include "imximage.h" #include "imximage.h"

View file

@ -793,7 +793,6 @@ static uint32_t parse_cfg_file(struct imx_header *imxhdr, char *name)
return dcd_len; return dcd_len;
} }
static int imximage_check_image_types(uint8_t type) static int imximage_check_image_types(uint8_t type)
{ {
if (type == IH_TYPE_IMXIMAGE) if (type == IH_TYPE_IMXIMAGE)
@ -1057,7 +1056,6 @@ static int imximage_generate(struct image_tool_params *params,
return pad_len; return pad_len;
} }
/* /*
* imximage parameters * imximage parameters
*/ */

View file

@ -804,7 +804,6 @@ static int kwb_sign_and_verify(RSA *key, void *data, int datasz,
return 0; return 0;
} }
static int kwb_dump_fuse_cmds_38x(FILE *out, struct secure_hdr_v1 *sec_hdr) static int kwb_dump_fuse_cmds_38x(FILE *out, struct secure_hdr_v1 *sec_hdr)
{ {
struct hash_v1 kak_pub_hash; struct hash_v1 kak_pub_hash;

View file

@ -2058,7 +2058,6 @@ static int sb_verify_image_end(struct sb_image_ctx *ictx,
return ret; return ret;
} }
static int sb_build_tree_from_img(struct sb_image_ctx *ictx) static int sb_build_tree_from_img(struct sb_image_ctx *ictx)
{ {
long filesize; long filesize;