[U-Boot] [PATCH] cmd_bdinfo: simplify local static funcs a bit

Simon Glass sjg at chromium.org
Mon Oct 31 20:11:35 CET 2011


On Sun, Oct 30, 2011 at 5:54 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> If we move the local funcs to the top of the file, and use the
> __maybe_unused define, we can drop a lot of ugly ifdef logic and
> duplicated prototypes.
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>

This is much cleaner - is the correct style to put attribute tags on
the previous line?

Acked-by: Simon Glass <sjg at chromium.org>

> ---
>  common/cmd_bdinfo.c |   89 ++++++++++++++++++--------------------------------
>  1 files changed, 32 insertions(+), 57 deletions(-)
>


More information about the U-Boot mailing list