From: Mario Six Date: Wed, 11 Jan 2017 16:00:57 +0100 Subject: [U-Boot] [PATCH v2 13/18] tools: kwbimage: Remove unused parameter In-Reply-To: <20170111150102.7399-1-mario.six@gdsys.cc> References: <20170111150102.7399-1-mario.six@gdsys.cc> Message-ID: <20170111150102.7399-14-mario.six@gdsys.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The parameter 'params' of the image_headersz_v1 function is never used by the function. Hence, remove it. Signed-off-by: Mario Six --- Changes in v2: None --- tools/kwbimage.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 4fd9389..87587f8 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -308,8 +308,7 @@ static void *image_create_v0(size_t *imagesz, struct image_tool_params *params, return image; } -static size_t image_headersz_v1(struct image_tool_params *params, - int *hasext) +static size_t image_headersz_v1(int *hasext) { struct image_cfg_element *binarye; size_t headersz; @@ -393,7 +392,7 @@ static void *image_create_v1(size_t *imagesz, struct image_tool_params *params, * Calculate the size of the header and the size of the * payload */ - headersz = image_headersz_v1(params, &hasext); + headersz = image_headersz_v1(&hasext); if (headersz == 0) return NULL; @@ -855,7 +854,7 @@ static int kwbimage_generate(struct image_tool_params *params, alloc_len = sizeof(struct main_hdr_v0) + sizeof(struct ext_hdr_v0); } else { - alloc_len = image_headersz_v1(params, NULL); + alloc_len = image_headersz_v1(NULL); } hdr = malloc(alloc_len); -- 2.9.0