]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: kwbimage: Remove unused parameter
authorMario Six <mario.six@gdsys.cc>
Wed, 11 Jan 2017 15:00:57 +0000 (16:00 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Feb 2017 08:03:59 +0000 (09:03 +0100)
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>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c

index 4fd93899f5c8ea008fca3ebcf1c57b4b09b239c4..87587f85c5becc8018a9f6fb37e4f51bb9cf09cb 100644 (file)
@@ -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);