From ca8b173e4741ec916ad4d7b356d29ed5a30719db Mon Sep 17 00:00:00 2001 From: Naresh Kumar Mehta Date: Mon, 1 Apr 2019 14:24:07 +0530 Subject: [PATCH] sysupgrade: Remove duplicate declaration Change-Id: I463a5d7252b54c850ac2e5c9d8b3c679455d66c5 Signed-off-by: Naresh Kumar Mehta --- tools/sysupgrade.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/sysupgrade.c b/tools/sysupgrade.c index bb0fdee32b..2c1d0a9b70 100644 --- a/tools/sysupgrade.c +++ b/tools/sysupgrade.c @@ -44,8 +44,6 @@ #define UBI_EC_HDR_MAGIC 0x55424923 #define UBI_VID_HDR_MAGIC 0x55424921 -#define ARRAY_SIZE(array) sizeof(array)/sizeof(array[0]) - struct image_section sections[] = { { .section_type = UBOOT_TYPE, @@ -132,7 +130,7 @@ struct image_section sections[] = { }, }; -#define NO_OF_SECTIONS ARRAY_SIZE(sections) +#define NO_OF_SECTIONS ARRAY_SIZE(sections) int src_size; int check_mbn_elf(struct image_section **sec)