diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-01-17 06:02:10 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-02-13 23:43:02 (GMT) |
commit | 3cfb0c51b2bb5ede54eca85ace5b1ba12be314b0 (patch) | |
tree | 92f2add89c3ca9258c9dd78e496c2a309dbf45a5 /include/common.h | |
parent | c77ce474b1c57b13e9d36d9830f147966c143694 (diff) | |
download | u-boot-3cfb0c51b2bb5ede54eca85ace5b1ba12be314b0.tar.xz |
Remove duplicate defines for ARRAY_SIZE
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index c4ee3e2..75fb676 100644 --- a/include/common.h +++ b/include/common.h @@ -665,4 +665,6 @@ void inline show_boot_progress (int val); #error Read section CONFIG_SKIP_LOWLEVEL_INIT in README. #endif +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + #endif /* __COMMON_H_ */ |