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

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;