]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
stdio: Remove redundant code around stdio_register() calls
authorSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 12:54:58 +0000 (06:54 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:07:23 +0000 (14:07 +0100)
commit91d0be1dd845913ba276e041dc11d1297390de11
treeff4358ffe721beb4f134f307cc37ee9d004db20d
parenteb9ef5fee7243d43d6fa29652c8ffa987f71b834
stdio: Remove redundant code around stdio_register() calls

There is no point in setting a structure's memory to NULL when it has
already been zeroed with memset().

Also, there is no need to create a stub function for stdio to call - if the
function is NULL it will not be called.

This is a clean-up, with no change in functionality.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Marek Vasut <marex@denx.de>
arch/x86/lib/video.c
board/bf527-ezkit/video.c
board/bf548-ezkit/video.c
board/cm-bf548/video.c
board/mpl/common/kbd.c
common/usb_kbd.c
drivers/input/keyboard.c
drivers/video/cfb_console.c