[U-Boot-Users] [patch] one liner to kill 'return 0' in void function

Yasushi SHOJI yashi at atmark-techno.com
Sat Jun 26 16:34:49 CEST 2004


Hi,

here is a oneliner to kill 'return 0' line in void function.

please apply.

regards,
--
             yashi

Index: serial_xuartlite.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/drivers/serial_xuartlite.c,v
retrieving revision 1.2
diff -u -r1.2 serial_xuartlite.c
--- serial_xuartlite.c	18 Apr 2004 23:32:13 -0000	1.2
+++ serial_xuartlite.c	26 Jun 2004 14:32:03 -0000
@@ -53,7 +53,6 @@
 	if (c == '\n') serial_putc('\r');
 	while (IO_SERIAL_STATUS & XUL_SR_TX_FIFO_FULL);
 	IO_SERIAL_TX_FIFO = (unsigned char) (c & 0xff);
-	return 0;
 }
 
 void serial_puts(const char * s)




More information about the U-Boot mailing list