linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Trivial cleanup in ocp_uart.c
@ 2002-06-20  7:34 David Gibson
  2002-06-20 15:50 ` Tom Rini
  0 siblings, 1 reply; 14+ messages in thread
From: David Gibson @ 2002-06-20  7:34 UTC (permalink / raw)
  To: Armin Kuster; +Cc: linuxppc-embedded


ocp_uart.c allocates private space with ocp_alloc_dev, but never uses
it.

diff -urN /home/dgibson/kernel/linuxppc_2_4_devel/arch/ppc/kernel/ocp_uart.c linux-grinch/arch/ppc/kernel/ocp_uart.c
--- /home/dgibson/kernel/linuxppc_2_4_devel/arch/ppc/kernel/ocp_uart.c	Wed Jun 19 10:32:59 2002
+++ linux-grinch/arch/ppc/kernel/ocp_uart.c	Thu Jun 20 17:32:57 2002
@@ -99,7 +99,7 @@
 	int curr_uart = 0;

 	while (curr_uart != -ENXIO) {
-		if (!(uart_drv = ocp_alloc_dev(sizeof (struct serial_struct))))
+		if (!(uart_drv = ocp_alloc_dev(0)))
 			return -ENOMEM;
 		uart_drv->type = UART;
 		/* this returns the next uart number */


--
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.  -- H.L. Mencken
http://www.ozlabs.org/people/dgibson

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-06-28 14:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-20  7:34 Trivial cleanup in ocp_uart.c David Gibson
2002-06-20 15:50 ` Tom Rini
2002-06-21  0:52   ` David Gibson
2002-06-21 14:39     ` Tom Rini
2002-06-24  7:40       ` David Gibson
2002-06-26 17:27         ` Scott Anderson
2002-06-27  0:41           ` David Gibson
2002-06-27 16:23             ` Scott Anderson
2002-06-27 16:52               ` Kenneth Johansson
2002-06-28  0:59               ` David Gibson
2002-06-28 14:57                 ` Tom Rini
2002-06-27 21:21         ` Armin Kuster
2002-06-27 20:30           ` Paul Mackerras
2002-06-27 21:12             ` Kenneth Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).