mips: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: adrian
This commit is contained in:
parent
26f0e234f7
commit
7b6cea2b01
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298053
@ -270,7 +270,7 @@ obio_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
printf("%s: could not reserve resource\n", __func__);
|
||||
return (0);
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ obio_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
printf("%s: could not reserve resource\n", __func__);
|
||||
return (0);
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ apb_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
printf("%s: could not reserve resource\n", __func__);
|
||||
return (0);
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ obio_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
printf("%s: could not reserve resource\n", __func__);
|
||||
return (0);
|
||||
}
|
||||
|
@ -316,7 +316,7 @@ cpu_initclocks(void)
|
||||
cpu_initclocks_bsp();
|
||||
}
|
||||
|
||||
struct msgbuf *msgbufp=0;
|
||||
struct msgbuf *msgbufp = NULL;
|
||||
|
||||
/*
|
||||
* Initialize the hardware exception vectors, and the jump table used to
|
||||
|
@ -315,7 +315,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
printf("%s: could not reserve resource for %s\n", __func__,
|
||||
device_get_nameunit(child));
|
||||
return (0);
|
||||
|
@ -244,7 +244,7 @@ xlp_simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
device_printf(bus, "%s: could not reserve resource for %s\n",
|
||||
__func__, device_get_nameunit(child));
|
||||
return (NULL);
|
||||
|
@ -537,7 +537,7 @@ xlr_pci_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0)
|
||||
if (rv == NULL)
|
||||
return (0);
|
||||
|
||||
rman_set_rid(rv, *rid);
|
||||
|
@ -326,7 +326,7 @@ obio_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
printf("%s: could not reserve resource\n", __func__);
|
||||
return (0);
|
||||
}
|
||||
|
@ -562,7 +562,7 @@ rt305x_gpio_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
}
|
||||
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0) {
|
||||
if (rv == NULL) {
|
||||
printf("%s: could not reserve resource\n", __func__);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user