Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2016 16:18:07 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298070 - head/sys/geom/gate
Message-ID:  <201604151618.u3FGI7lT093090@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604151618.u3FGI7lT093090>