Author: pfg Date: Thu Apr 14 17:20:35 2016 New Revision: 297978 URL: https://svnweb.freebsd.org/changeset/base/297978
Log: isa/pnp: for pointers replace 0 with NULL. These are mostly cosmetical, no functional change. Found with devel/coccinelle. Modified: head/sys/isa/pnp.c Modified: head/sys/isa/pnp.c ============================================================================== --- head/sys/isa/pnp.c Thu Apr 14 17:14:11 2016 (r297977) +++ head/sys/isa/pnp.c Thu Apr 14 17:20:35 2016 (r297978) @@ -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_ 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_ 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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"