diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-14 17:20:35 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-14 17:20:35 +0000 |
commit | e4188afba8273a2f8e2ab1fab04f3c4db4163ade (patch) | |
tree | fd509d7d17ac114bd463861214464bcf27faaa2e /sys | |
parent | e3a9ee4ccfde92b5c56784651edff4c4f79a1499 (diff) | |
download | FreeBSD-src-e4188afba8273a2f8e2ab1fab04f3c4db4163ade.zip FreeBSD-src-e4188afba8273a2f8e2ab1fab04f3c4db4163ade.tar.gz |
isa/pnp: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change.
Found with devel/coccinelle.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/isa/pnp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/isa/pnp.c b/sys/isa/pnp.c index f2e5dfc..599af84 100644 --- a/sys/isa/pnp.c +++ b/sys/isa/pnp.c @@ -416,14 +416,14 @@ static int pnp_create_devices(device_t parent, pnp_id *p, int csn, u_char *resources, int len) { - u_char tag, *resp, *resinfo, *startres = 0; + u_char tag, *resp, *resinfo, *startres = NULL; int large_len, scanning = len, retval = FALSE; uint32_t logical_id; device_t dev = 0; int ldn = 0; struct pnp_set_config_arg *csnldn; char buf[100]; - char *desc = 0; + char *desc = NULL; resp = resources; while (scanning > 0) { @@ -492,7 +492,7 @@ pnp_create_devices(device_t parent, pnp_id *p, int csn, pnp_parse_resources(dev, startres, resinfo - startres - 1, ldn); dev = 0; - startres = 0; + startres = NULL; } /* @@ -537,7 +537,7 @@ pnp_create_devices(device_t parent, pnp_id *p, int csn, pnp_parse_resources(dev, startres, resinfo - startres - 1, ldn); dev = 0; - startres = 0; + startres = NULL; scanning = 0; break; @@ -674,7 +674,7 @@ pnp_isolation_protocol(device_t parent) int csn; pnp_id id; int found = 0, len; - u_char *resources = 0; + u_char *resources = NULL; int space = 0; int error; #ifdef PC98 |