sandbox: Rename 'free' variable
authorSimon Glass <sjg@chromium.org>
Mon, 3 Feb 2020 14:35:57 +0000 (07:35 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
This name conflicts with our desire to #define free() to something else on
sandbox. Rename it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/state.c

index cd46e000f5e9e77abce85fb864e72282992ac977..ef2e63f37a78d7b5e52a23b9dcc64ea129599d45 100644 (file)
@@ -16,14 +16,14 @@ static struct sandbox_state *state; /* Pointer to current state record */
 static int state_ensure_space(int extra_size)
 {
        void *blob = state->state_fdt;
-       int used, size, free;
+       int used, size, free_bytes;
        void *buf;
        int ret;
 
        used = fdt_off_dt_strings(blob) + fdt_size_dt_strings(blob);
        size = fdt_totalsize(blob);
-       free = size - used;
-       if (free > extra_size)
+       free_bytes = size - used;
+       if (free_bytes > extra_size)
                return 0;
 
        size = used + extra_size;