diff options
author | Pali Rohár <pali@kernel.org> | 2021-11-08 18:12:45 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-11-10 12:08:06 +0100 |
commit | 56087c1b4dd4bd976b072f069dc4c5f51b3f6f46 (patch) | |
tree | 74b1cf829403cc6f71155a978586daa36643b3d0 | |
parent | 700ea98b2e364a8107a9af962ba39f2eeadfc678 (diff) | |
download | u-boot-56087c1b4dd4bd976b072f069dc4c5f51b3f6f46.zip u-boot-56087c1b4dd4bd976b072f069dc4c5f51b3f6f46.tar.gz u-boot-56087c1b4dd4bd976b072f069dc4c5f51b3f6f46.tar.bz2 |
tools: kwbimage: Remove unused enums and prototypes
There are more unused enums and function prototypes. Remove them. The
function kwbimage_check_params() does not return enum kwbimage_cmd_types,
but a boolean value returned as int.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | tools/kwbimage.c | 2 | ||||
-rw-r--r-- | tools/kwbimage.h | 22 |
2 files changed, 1 insertions, 23 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c index a176b39..864625d 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -1916,7 +1916,7 @@ static int kwbimage_check_params(struct image_tool_params *params) char *msg = "Configuration file for kwbimage creation omitted"; fprintf(stderr, "Error:%s - %s\n", params->cmdname, msg); - return CFG_INVALID; + return 1; } return (params->dflag && (params->fflag || params->lflag)) || diff --git a/tools/kwbimage.h b/tools/kwbimage.h index f74767e..8d37357 100644 --- a/tools/kwbimage.h +++ b/tools/kwbimage.h @@ -191,28 +191,6 @@ struct register_set_hdr_v1 { #define OPT_HDR_V1_BINARY_TYPE 0x2 #define OPT_HDR_V1_REGISTER_TYPE 0x3 -enum kwbimage_cmd { - CMD_INVALID, - CMD_BOOT_FROM, - CMD_NAND_ECC_MODE, - CMD_NAND_PAGE_SIZE, - CMD_SATA_PIO_MODE, - CMD_DDR_INIT_DELAY, - CMD_DATA -}; - -enum kwbimage_cmd_types { - CFG_INVALID = -1, - CFG_COMMAND, - CFG_DATA0, - CFG_DATA1 -}; - -/* - * functions - */ -void init_kwb_image_type (void); - /* * Byte 8 of the image header contains the version number. In the v0 * header, byte 8 was reserved, and always set to 0. In the v1 header, |