summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-07-23 06:54:58 -0600
committerSimon Glass <sjg@chromium.org>2014-07-23 14:07:23 +0100
commit91d0be1dd845913ba276e041dc11d1297390de11 (patch)
treeff4358ffe721beb4f134f307cc37ee9d004db20d /arch/x86
parenteb9ef5fee7243d43d6fa29652c8ffa987f71b834 (diff)
downloadblackbird-obmc-uboot-91d0be1dd845913ba276e041dc11d1297390de11.tar.gz
blackbird-obmc-uboot-91d0be1dd845913ba276e041dc11d1297390de11.zip
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/video.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/lib/video.c b/arch/x86/lib/video.c
index dfd2a8496e..eb9c595a4e 100644
--- a/arch/x86/lib/video.c
+++ b/arch/x86/lib/video.c
@@ -178,8 +178,6 @@ int video_init(void)
vga_dev.flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_SYSTEM;
vga_dev.putc = video_putc; /* 'putc' function */
vga_dev.puts = video_puts; /* 'puts' function */
- vga_dev.tstc = NULL; /* 'tstc' function */
- vga_dev.getc = NULL; /* 'getc' function */
if (stdio_register(&vga_dev) == 0)
return 1;
@@ -191,8 +189,6 @@ int video_init(void)
strcpy(kbd_dev.name, "kbd");
kbd_dev.ext = 0;
kbd_dev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_SYSTEM;
- kbd_dev.putc = NULL; /* 'putc' function */
- kbd_dev.puts = NULL; /* 'puts' function */
kbd_dev.tstc = i8042_tstc; /* 'tstc' function */
kbd_dev.getc = i8042_getc; /* 'getc' function */
OpenPOWER on IntegriCloud