diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-29 18:03:30 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 16:38:01 +0200 |
commit | c52b4f794541c9aad15148ae8f4e1af775e3e776 (patch) | |
tree | 9dd3cecd3c22140b887b719a7e536cbe2ea32374 | |
parent | 6c768ca746c341dd6acbb8b39f48acb48e964d83 (diff) | |
download | u-boot-imx-c52b4f794541c9aad15148ae8f4e1af775e3e776.zip u-boot-imx-c52b4f794541c9aad15148ae8f4e1af775e3e776.tar.gz u-boot-imx-c52b4f794541c9aad15148ae8f4e1af775e3e776.tar.bz2 |
serial: drop serial_register return value
The serial_register function never fails (always return 0), so change it
to a void function to avoid wasting overhead on it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | common/serial.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/serial.c b/common/serial.c index 505c2c6..bf77409 100644 --- a/common/serial.c +++ b/common/serial.c @@ -30,7 +30,7 @@ DECLARE_GLOBAL_DATA_PTR; static struct serial_device *serial_devices = NULL; static struct serial_device *serial_current = NULL; -int serial_register (struct serial_device *dev) +void serial_register(struct serial_device *dev) { #ifdef CONFIG_NEEDS_MANUAL_RELOC dev->init += gd->reloc_off; @@ -43,8 +43,6 @@ int serial_register (struct serial_device *dev) dev->next = serial_devices; serial_devices = dev; - - return 0; } void serial_initialize (void) |