PERFORCE change 34181 for review

Marcel Moolenaar marcel at FreeBSD.org
Mon Jul 7 20:15:46 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=34181

Change 34181 by marcel at marcel_nfs on 2003/07/07 20:14:56

	Replace a redundant device_get_parent(dev) when we already have
	the parent in variable parent.

Affected files ...

.. //depot/projects/uart/dev/uart/uart_bus_puc.c#3 edit

Differences ...

==== //depot/projects/uart/dev/uart/uart_bus_puc.c#3 (text+ko) ====

@@ -81,7 +81,7 @@
 		return (ENXIO);
 	}
 
-	if (BUS_READ_IVAR(device_get_parent(dev), dev, PUC_IVAR_FREQ, &rclk))
+	if (BUS_READ_IVAR(parent, dev, PUC_IVAR_FREQ, &rclk))
 		rclk = 0;
 	return (uart_bus_probe(dev, 0, rclk, 0));
 }


More information about the p4-projects mailing list