diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-15 16:18:07 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-15 16:18:07 +0000 |
commit | a954b9061ce19b5b4bdb17e803fd6d049a22f2e6 (patch) | |
tree | 87f7f9e225ff924c43ba4a73ab40b6663b072b00 /sys/geom/gate | |
parent | 5b3421712df32357bb45a1f53110c0f849b0d314 (diff) | |
download | FreeBSD-src-a954b9061ce19b5b4bdb17e803fd6d049a22f2e6.zip FreeBSD-src-a954b9061ce19b5b4bdb17e803fd6d049a22f2e6.tar.gz |
g_gate: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change.
Found with devel/coccinelle.
Diffstat (limited to 'sys/geom/gate')
-rw-r--r-- | sys/geom/gate/g_gate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c index 3453eef..8cfe9d4 100644 --- a/sys/geom/gate/g_gate.c +++ b/sys/geom/gate/g_gate.c @@ -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; |