g_gate: for pointers replace 0 with NULL.

These are mostly cosmetical, no functional change.

Found with devel/coccinelle.
This commit is contained in:
Pedro F. Giffuni 2016-04-15 16:18:07 +00:00
parent b85f65af68
commit 01b5c6f73e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298070

View File

@ -945,7 +945,7 @@ g_gate_modevent(module_t mod, int type, void *data)
}
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;