]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
serial: drop serial_register return value
authorMike Frysinger <vapier@gentoo.org>
Fri, 29 Apr 2011 18:03:30 +0000 (18:03 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 26 Jul 2011 14:38:01 +0000 (16:38 +0200)
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>
common/serial.c

index 505c2c6b8985c0361ce30de251f71b02fdbc6ce1..bf7740950fd339ed20275f675e93f9acf3965d36 100644 (file)
@@ -30,7 +30,7 @@ DECLARE_GLOBAL_DATA_PTR;
 static struct serial_device *serial_devices = NULL;
 static struct serial_device *serial_current = NULL;
 
 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;
 {
 #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;
 
        dev->next = serial_devices;
        serial_devices = dev;
-
-       return 0;
 }
 
 void serial_initialize (void)
 }
 
 void serial_initialize (void)