isa/pnp: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle.
This commit is contained in:
parent
44c16975a2
commit
d9ca4bc073
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297978
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user