svn commit: r298070 - head/sys/geom/gate

Pedro F. Giffuni pfg at FreeBSD.org
Fri Apr 15 16:18:08 UTC 2016


Author: pfg
Date: Fri Apr 15 16:18:07 2016
New Revision: 298070
URL: https://svnweb.freebsd.org/changeset/base/298070

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

Modified:
  head/sys/geom/gate/g_gate.c

Modified: head/sys/geom/gate/g_gate.c
==============================================================================
--- head/sys/geom/gate/g_gate.c	Fri Apr 15 16:10:11 2016	(r298069)
+++ head/sys/geom/gate/g_gate.c	Fri Apr 15 16:18:07 2016	(r298070)
@@ -945,7 +945,7 @@ g_gate_modevent(module_t mod, int type, 
 		}
 		mtx_unlock(&g_gate_units_lock);
 		mtx_destroy(&g_gate_units_lock);
-		if (status_dev != 0)
+		if (status_dev != NULL)
 			destroy_dev(status_dev);
 		free(g_gate_units, M_GATE);
 		break;


More information about the svn-src-all mailing list