[U-Boot] [PATCH 2/2] console: simplify puts()

Simon Glass sjg at chromium.org
Fri Jul 28 04:19:41 UTC 2017


Hi Masahiro,

On 16 July 2017 at 22:08, Masahiro Yamada <yamada.masahiro at socionext.com> wrote:
> Current puts() and putc() have similar #ifdef / if() conditionals.
> Make puts() iterate over putc() to avoid code duplication.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
>  common/console.c | 44 ++------------------------------------------
>  1 file changed, 2 insertions(+), 42 deletions(-)

This is here I think because having the conditions outside the loop is
faster. But perhaps it makes not difference really.

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


More information about the U-Boot mailing list