Skip to contentSkip to conversation

one liner to kill 'return 0' in void function

PATCH New Yasushi SHOJI 2 participants 2 messages Jun 26, 2004 – Jul 10, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 one liner to kill 'return 0' in void function

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

serial_xuartlite.c +0 -1
diff -u -r1.2 serial_xuartlite.c
@@ -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)
#1 lore raw

PATCH 1/1 one liner to kill 'return 0' in void function

Quoted 4 lines · In message <[email protected]> you wrote:

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

please apply.

Thanks, added.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
All easy problems have already been solved.