summaryrefslogtreecommitdiffstats
path: root/sys/dev/ctau
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2017-03-14 02:06:03 +0000
committerpfg <pfg@FreeBSD.org>2017-03-14 02:06:03 +0000
commitf3584df197214b997bc9ae927780e03c37c9e36c (patch)
treeaae668303806e238ca59fc767e74a67964266c3f /sys/dev/ctau
parent1c6f535240ae8fa78eae79343be21fe7ff7a6807 (diff)
downloadFreeBSD-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.c2
-rw-r--r--sys/dev/ctau/if_ct.c4
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);
OpenPOWER on IntegriCloud