diff options
author | pfg <pfg@FreeBSD.org> | 2017-03-14 02:06:03 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2017-03-14 02:06:03 +0000 |
commit | f3584df197214b997bc9ae927780e03c37c9e36c (patch) | |
tree | aae668303806e238ca59fc767e74a67964266c3f /sys/dev/ctau | |
parent | 1c6f535240ae8fa78eae79343be21fe7ff7a6807 (diff) | |
download | FreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.zip FreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.tar.gz |
MFC r313982, r314068:
sys: Replace zero with NULL for pointers.
Found with: devel/coccinelle
Diffstat (limited to 'sys/dev/ctau')
-rw-r--r-- | sys/dev/ctau/ctddk.c | 2 | ||||
-rw-r--r-- | sys/dev/ctau/if_ct.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ctau/ctddk.c b/sys/dev/ctau/ctddk.c index 0a9dbd2..cd83311 100644 --- a/sys/dev/ctau/ctddk.c +++ b/sys/dev/ctau/ctddk.c @@ -104,7 +104,7 @@ int ct_open_board (ct_board_t *b, int num, port_t port, int irq, int dma) case B_TAU2_E1D: fw = ctau2_fw_data; flen = 0; - ft = 0; + ft = NULL; break; #ifndef CT_DDK_NO_G703 case B_TAU_G703: diff --git a/sys/dev/ctau/if_ct.c b/sys/dev/ctau/if_ct.c index a3df2a8..41975ba 100644 --- a/sys/dev/ctau/if_ct.c +++ b/sys/dev/ctau/if_ct.c @@ -839,8 +839,8 @@ static int ct_detach (device_t dev) /* Deallocate buffers. */ ct_bus_dma_mem_free (&d->dmamem); } - bd->board = 0; - adapter [b->num] = 0; + bd->board = NULL; + adapter [b->num] = NULL; free (b, M_DEVBUF); mtx_destroy (&bd->ct_mtx); |