g_gate: for pointers replace 0 with NULL.

These are mostly cosmetical, no functional change.

Found with devel/coccinelle.
This commit is contained in:
pfg 2016-04-15 16:18:07 +00:00
parent 5b3421712d
commit a954b9061c

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;