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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"