diff mbox

[U-Boot,12/17] tools: kwbimage: Remove unused parameter

Message ID 2d7bce7a1f0638c4e5dd83368ef4ece12cda7121.1479913469.git.mario.six@gdsys.cc
State Accepted
Commit e93cf53f14b5c246fda6739ed4f3f1c4817c2f0c
Delegated to: Stefan Roese
Headers show

Commit Message

Mario Six Nov. 23, 2016, 3:12 p.m. UTC
The parameter 'params' of the image_headersz_v1 function is never used
by the function.

Hence, remove it.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
---
 tools/kwbimage.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index 12a72ea..cd34ccd 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -282,8 +282,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;
@@ -367,7 +366,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;
 
@@ -815,7 +814,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);