summaryrefslogtreecommitdiff
path: root/drivers/input
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 /drivers/input
parenteb9ef5fee7243d43d6fa29652c8ffa987f71b834 (diff)
downloadu-boot-imx-91d0be1dd845913ba276e041dc11d1297390de11.zip
u-boot-imx-91d0be1dd845913ba276e041dc11d1297390de11.tar.gz
u-boot-imx-91d0be1dd845913ba276e041dc11d1297390de11.tar.bz2
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 'drivers/input')
-rw-r--r--drivers/input/keyboard.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/keyboard.c b/drivers/input/keyboard.c
index 614592e..5ef1cc0 100644
--- a/drivers/input/keyboard.c
+++ b/drivers/input/keyboard.c
@@ -275,8 +275,6 @@ int kbd_init (void)
memset (&kbddev, 0, sizeof(kbddev));
strcpy(kbddev.name, DEVNAME);
kbddev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_SYSTEM;
- kbddev.putc = NULL ;
- kbddev.puts = NULL ;
kbddev.getc = kbd_getc ;
kbddev.tstc = kbd_testc ;