]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/aisimage.c
tools/proftool: remove REG_NOERROR
[karo-tx-uboot.git] / tools / aisimage.c
index 6a1011194a5a5eea9dabad34d6b5bde608237989..659df8c0ee7cb611e0fe48c1073146afeb40c502 100644 (file)
@@ -32,7 +32,6 @@
 #define WORD_ALIGN0    4
 #define WORD_ALIGN(len) (((len)+WORD_ALIGN0-1) & ~(WORD_ALIGN0-1))
 #define MAX_CMD_BUFFER 4096
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
 
 static uint32_t ais_img_size;
 
@@ -180,7 +179,7 @@ static void aisimage_print_header(const void *hdr)
 
 static uint32_t *ais_insert_cmd_header(uint32_t cmd, uint32_t nargs,
        uint32_t *parms, struct image_type_params *tparams,
-       uint32_t *ptr, uint32_t size)
+       uint32_t *ptr)
 {
        int i;
 
@@ -285,7 +284,7 @@ static int aisimage_generate(struct mkimage_params *params,
        uint32_t nargs, cmd_parms[10];
        uint32_t value, size;
        char *name = params->imagename;
-       uint32_t *aishdr, tsize;
+       uint32_t *aishdr;
 
        fd = fopen(name, "r");
        if (fd == 0) {
@@ -363,7 +362,7 @@ static int aisimage_generate(struct mkimage_params *params,
                if (cmd != CMD_INVALID) {
                        /* Now insert the command into the header */
                        aishdr = ais_insert_cmd_header(cmd, nargs, cmd_parms,
-                               tparams, aishdr, tsize);
+                               tparams, aishdr);
                }
 
        }