diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-15 14:26:24 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-15 14:26:24 +0000 |
commit | bb82d4608439d25802860305a6457ab0db4f1fd2 (patch) | |
tree | 7339cdf274a9449d696fbdef86e01b43549f7349 /sys/mips | |
parent | 4aa37d34aadc7d35a27d631f75d8358629ff8fcb (diff) | |
download | FreeBSD-src-bb82d4608439d25802860305a6457ab0db4f1fd2.zip FreeBSD-src-bb82d4608439d25802860305a6457ab0db4f1fd2.tar.gz |
mips: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change.
Found with devel/coccinelle.
Reviewed by: adrian
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/adm5120/obio.c | 2 | ||||
-rw-r--r-- | sys/mips/alchemy/obio.c | 2 | ||||
-rw-r--r-- | sys/mips/atheros/apb.c | 2 | ||||
-rw-r--r-- | sys/mips/idt/obio.c | 2 | ||||
-rw-r--r-- | sys/mips/mips/machdep.c | 2 | ||||
-rw-r--r-- | sys/mips/mips/nexus.c | 2 | ||||
-rw-r--r-- | sys/mips/nlm/xlp_simplebus.c | 2 | ||||
-rw-r--r-- | sys/mips/rmi/xlr_pci.c | 2 | ||||
-rw-r--r-- | sys/mips/rt305x/obio.c | 2 | ||||
-rw-r--r-- | sys/mips/rt305x/rt305x_gpio.c | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/sys/mips/adm5120/obio.c b/sys/mips/adm5120/obio.c index 8b62629..0e09886 100644 --- a/sys/mips/adm5120/obio.c +++ b/sys/mips/adm5120/obio.c @@ -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); } diff --git a/sys/mips/alchemy/obio.c b/sys/mips/alchemy/obio.c index 96b1f1d..b85ca48 100644 --- a/sys/mips/alchemy/obio.c +++ b/sys/mips/alchemy/obio.c @@ -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); } diff --git a/sys/mips/atheros/apb.c b/sys/mips/atheros/apb.c index abae9c2..6a38c7d 100644 --- a/sys/mips/atheros/apb.c +++ b/sys/mips/atheros/apb.c @@ -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); } diff --git a/sys/mips/idt/obio.c b/sys/mips/idt/obio.c index b95b11a..f151a79 100644 --- a/sys/mips/idt/obio.c +++ b/sys/mips/idt/obio.c @@ -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); } diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c index 5d25d88..3d44cda 100644 --- a/sys/mips/mips/machdep.c +++ b/sys/mips/mips/machdep.c @@ -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 diff --git a/sys/mips/mips/nexus.c b/sys/mips/mips/nexus.c index a2a8e527..908d5bc 100644 --- a/sys/mips/mips/nexus.c +++ b/sys/mips/mips/nexus.c @@ -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); diff --git a/sys/mips/nlm/xlp_simplebus.c b/sys/mips/nlm/xlp_simplebus.c index 413775b..eb42a86 100644 --- a/sys/mips/nlm/xlp_simplebus.c +++ b/sys/mips/nlm/xlp_simplebus.c @@ -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); diff --git a/sys/mips/rmi/xlr_pci.c b/sys/mips/rmi/xlr_pci.c index 53581a6..3d98503 100644 --- a/sys/mips/rmi/xlr_pci.c +++ b/sys/mips/rmi/xlr_pci.c @@ -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); diff --git a/sys/mips/rt305x/obio.c b/sys/mips/rt305x/obio.c index ac27230..fc8a4ac 100644 --- a/sys/mips/rt305x/obio.c +++ b/sys/mips/rt305x/obio.c @@ -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); } diff --git a/sys/mips/rt305x/rt305x_gpio.c b/sys/mips/rt305x/rt305x_gpio.c index e4f645f..56b734a 100644 --- a/sys/mips/rt305x/rt305x_gpio.c +++ b/sys/mips/rt305x/rt305x_gpio.c @@ -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); } |