mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
6c768ca746
commit
c52b4f7945
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue