Ariel Otilibili has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85786?usp=email )
Change subject: util/cbfstool: Replace 'unsigned long int' by 'unsigned long' ......................................................................
util/cbfstool: Replace 'unsigned long int' by 'unsigned long'
As suggested by the linter:
Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary
Link: https://qa.coreboot.org/job/coreboot-untested-files/lastSuccessfulBuild/arti... Cc: Nico Huber nico.h@gmx.de Cc: Julius Werner jwerner@chromium.org Cc: "Jérémy Compostella" jeremy.compostella@intel.com Cc: Ron Minnich rminnich@gmail.com Cc: Shuo Liu shuo.liu@intel.com Cc: Arthur Heymans arthur@aheymans.xyz Cc: Patrick Georgi patrick@coreboot.org Change-Id: If94e70778d0302552f151c31d3073524162faf9e Signed-off-by: Ariel Otilibili otilibil@eurecom.fr --- M util/cbfstool/cbfstool.c M util/cbfstool/flashmap/fmap.c 2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/85786/1
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 25f4847..6fec2b8 100644 --- a/util/cbfstool/cbfstool.c +++ b/util/cbfstool/cbfstool.c @@ -352,11 +352,11 @@ return 1;
union { - unsigned long int array[3]; + unsigned long array[3]; struct { - unsigned long int flash_base; - unsigned long int mmap_base; - unsigned long int mmap_size; + unsigned long flash_base; + unsigned long mmap_base; + unsigned long mmap_size; }; } mmap_args; char *suffix = NULL; diff --git a/util/cbfstool/flashmap/fmap.c b/util/cbfstool/flashmap/fmap.c index 46c31bb..bf9f4bb 100644 --- a/util/cbfstool/flashmap/fmap.c +++ b/util/cbfstool/flashmap/fmap.c @@ -74,7 +74,7 @@ /* brute force linear search */ static long int fmap_lsearch(const uint8_t *image, size_t len) { - unsigned long int offset; + unsigned long offset; int fmap_found = 0;
for (offset = 0; offset < len - strlen(FMAP_SIGNATURE); offset++) { @@ -96,7 +96,7 @@ /* if image length is a power of 2, use binary search */ static long int fmap_bsearch(const uint8_t *image, size_t len) { - unsigned long int offset = -1; + unsigned long offset = -1; int fmap_found = 0, stride;
/*