diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-02-20 03:43:12 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-02-20 03:43:12 +0000 |
commit | 4d24901ac9131267fd188c5e1ee19a219847238a (patch) | |
tree | c6b56412f6ca4e7ffd1dc366d2fc51f7fa34600f /sys/dev/ce | |
parent | 85161825cf4af1294d9464badbe675a1419bd4fd (diff) | |
download | src-4d24901ac9131267fd188c5e1ee19a219847238a.tar.gz src-4d24901ac9131267fd188c5e1ee19a219847238a.zip |
sys/dev: Replace zero with NULL for pointers.
Makes things easier to read, plus architectures may set NULL to something
different than zero.
Found with: devel/coccinelle
MFC after: 3 weeks
Notes
Notes:
svn path=/head/; revision=313982
Diffstat (limited to 'sys/dev/ce')
-rw-r--r-- | sys/dev/ce/if_ce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ce/if_ce.c b/sys/dev/ce/if_ce.c index 69779d6c5e2d..541db6ce16c9 100644 --- a/sys/dev/ce/if_ce.c +++ b/sys/dev/ce/if_ce.c @@ -840,11 +840,11 @@ static int ce_detach (device_t dev) if (! d || ! d->chan) continue; callout_drain (&d->timeout_handle); - channel [b->num * NCHAN + c->num] = 0; + channel [b->num * NCHAN + c->num] = NULL; /* Deallocate buffers. */ ce_bus_dma_mem_free (&d->dmamem); } - adapter [b->num] = 0; + adapter [b->num] = NULL; ce_bus_dma_mem_free (&bd->dmamem); free (b, M_DEVBUF); #if __FreeBSD_version >= 504000 |