[U-Boot] [PATCH] post: use ARRAY_SIZE

Wolfgang Denk wd at denx.de
Tue Jul 26 16:48:27 CEST 2011


Dear Mike Frysinger,

In message <1305048515-15299-1-git-send-email-vapier at gentoo.org> you wrote:
> We've got a handy dandy macro already for calculating the number of
> elements in an array, so use it.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  post/board/lwmon/sysmon.c                     |    2 +-
>  post/cpu/mpc8xx/ether.c                       |    4 +---
>  post/cpu/mpc8xx/spr.c                         |    3 +--
>  post/cpu/mpc8xx/uart.c                        |    4 +---
>  post/cpu/ppc4xx/spr.c                         |    3 +--
>  post/drivers/memory.c                         |    2 +-
>  post/lib_powerpc/andi.c                       |    3 +--
>  post/lib_powerpc/cmp.c                        |    3 +--
>  post/lib_powerpc/cmpi.c                       |    3 +--
>  post/lib_powerpc/cr.c                         |   12 ++++--------
>  post/lib_powerpc/fpu/mul-subnormal-single-1.c |    2 +-
>  post/lib_powerpc/load.c                       |    3 +--
>  post/lib_powerpc/multi.c                      |    2 +-
>  post/lib_powerpc/rlwimi.c                     |    3 +--
>  post/lib_powerpc/rlwinm.c                     |    3 +--
>  post/lib_powerpc/rlwnm.c                      |    3 +--
>  post/lib_powerpc/srawi.c                      |    3 +--
>  post/lib_powerpc/store.c                      |    3 +--
>  post/lib_powerpc/three.c                      |    3 +--
>  post/lib_powerpc/threei.c                     |    3 +--
>  post/lib_powerpc/threex.c                     |    3 +--
>  post/lib_powerpc/two.c                        |    3 +--
>  post/lib_powerpc/twox.c                       |    3 +--
>  post/post.c                                   |    2 +-
>  post/tests.c                                  |    2 +-
>  25 files changed, 28 insertions(+), 52 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Brain: an apparatus with which we think we think.    - Ambrose Bierce


More information about the U-Boot mailing list