svn commit: r298047 - head/sys/sparc64/ebus

Pedro F. Giffuni pfg at FreeBSD.org
Fri Apr 15 12:17:35 UTC 2016


Author: pfg
Date: Fri Apr 15 12:17:34 2016
New Revision: 298047
URL: https://svnweb.freebsd.org/changeset/base/298047

Log:
  sparc64: for pointers replace 0 with NULL.
  
  These are mostly cosmetical, no functional change.
  
  Found with devel/coccinelle.

Modified:
  head/sys/sparc64/ebus/ebus.c

Modified: head/sys/sparc64/ebus/ebus.c
==============================================================================
--- head/sys/sparc64/ebus/ebus.c	Fri Apr 15 12:16:15 2016	(r298046)
+++ head/sys/sparc64/ebus/ebus.c	Fri Apr 15 12:17:34 2016	(r298047)
@@ -370,7 +370,7 @@ ebus_pci_attach(device_t dev)
 		eri = &sc->sc_rinfo[i];
 		if (i < rnum)
 			rman_fini(&eri->eri_rman);
-		if (eri->eri_res != 0) {
+		if (eri->eri_res != NULL) {
 			bus_release_resource(dev, eri->eri_rtype,
 			    PCIR_BAR(rnum), eri->eri_res);
 		}


More information about the svn-src-all mailing list