PERFORCE change 138525 for review
    Oleksandr Tymoshenko 
    gonzo at FreeBSD.org
       
    Tue Mar 25 16:01:03 UTC 2008
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=138525
Change 138525 by gonzo at gonzo_jeeves on 2008/03/25 16:00:51
	o Remove unused variable
	o Use int 0 instead of NULL to avoid type cast complaints from gcc
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips32/idt/uart_cpu_rc32434.c#2 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips32/idt/uart_cpu_rc32434.c#2 (text+ko) ====
@@ -62,7 +62,7 @@
 int
 uart_cpu_getdev(int devtype, struct uart_devinfo *di)
 {
-	uint32_t i, maddr;
+	uint32_t maddr;
 
 	if (resource_int_value("uart", 0, "maddr", &maddr) != 0 ||
 	    maddr == 0)
@@ -78,8 +78,8 @@
 	di->databits = 8;
 	di->stopbits = 1;
 	di->parity = UART_PARITY_NONE;
-	uart_bus_space_io = NULL;
-	uart_bus_space_mem = NULL;
+	uart_bus_space_io = 0;
+	uart_bus_space_mem = 0;
 	di->bas.bsh = MIPS_PHYS_TO_KSEG1(maddr);
 	return (0);
 }
    
    
More information about the p4-projects
mailing list