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:
Pedro F. Giffuni 2016-04-15 14:26:24 +00:00
parent 26f0e234f7
commit 7b6cea2b01
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298053
10 changed files with 10 additions and 10 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);
}

View File

@ -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);
}