From owner-svn-src-all@freebsd.org Fri Apr 15 14:26:27 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2494FAED983; Fri, 15 Apr 2016 14:26:27 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAA321943; Fri, 15 Apr 2016 14:26:26 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3FEQQAf058986; Fri, 15 Apr 2016 14:26:26 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3FEQPPM058976; Fri, 15 Apr 2016 14:26:25 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201604151426.u3FEQPPM058976@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Fri, 15 Apr 2016 14:26:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298053 - in head/sys/mips: adm5120 alchemy atheros idt mips nlm rmi rt305x X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2016 14:26:27 -0000 Author: pfg Date: Fri Apr 15 14:26:24 2016 New Revision: 298053 URL: https://svnweb.freebsd.org/changeset/base/298053 Log: mips: for pointers replace 0 with NULL. These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: adrian Modified: head/sys/mips/adm5120/obio.c head/sys/mips/alchemy/obio.c head/sys/mips/atheros/apb.c head/sys/mips/idt/obio.c head/sys/mips/mips/machdep.c head/sys/mips/mips/nexus.c head/sys/mips/nlm/xlp_simplebus.c head/sys/mips/rmi/xlr_pci.c head/sys/mips/rt305x/obio.c head/sys/mips/rt305x/rt305x_gpio.c Modified: head/sys/mips/adm5120/obio.c ============================================================================== --- head/sys/mips/adm5120/obio.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/adm5120/obio.c Fri Apr 15 14:26:24 2016 (r298053) @@ -270,7 +270,7 @@ obio_alloc_resource(device_t bus, device } 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); } Modified: head/sys/mips/alchemy/obio.c ============================================================================== --- head/sys/mips/alchemy/obio.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/alchemy/obio.c Fri Apr 15 14:26:24 2016 (r298053) @@ -271,7 +271,7 @@ obio_alloc_resource(device_t bus, device } 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); } Modified: head/sys/mips/atheros/apb.c ============================================================================== --- head/sys/mips/atheros/apb.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/atheros/apb.c Fri Apr 15 14:26:24 2016 (r298053) @@ -223,7 +223,7 @@ apb_alloc_resource(device_t bus, device_ } 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); } Modified: head/sys/mips/idt/obio.c ============================================================================== --- head/sys/mips/idt/obio.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/idt/obio.c Fri Apr 15 14:26:24 2016 (r298053) @@ -204,7 +204,7 @@ obio_alloc_resource(device_t bus, device } 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); } Modified: head/sys/mips/mips/machdep.c ============================================================================== --- head/sys/mips/mips/machdep.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/mips/machdep.c Fri Apr 15 14:26:24 2016 (r298053) @@ -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 Modified: head/sys/mips/mips/nexus.c ============================================================================== --- head/sys/mips/mips/nexus.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/mips/nexus.c Fri Apr 15 14:26:24 2016 (r298053) @@ -315,7 +315,7 @@ nexus_alloc_resource(device_t bus, devic } 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); Modified: head/sys/mips/nlm/xlp_simplebus.c ============================================================================== --- head/sys/mips/nlm/xlp_simplebus.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/nlm/xlp_simplebus.c Fri Apr 15 14:26:24 2016 (r298053) @@ -244,7 +244,7 @@ xlp_simplebus_alloc_resource(device_t bu } 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); Modified: head/sys/mips/rmi/xlr_pci.c ============================================================================== --- head/sys/mips/rmi/xlr_pci.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/rmi/xlr_pci.c Fri Apr 15 14:26:24 2016 (r298053) @@ -537,7 +537,7 @@ xlr_pci_alloc_resource(device_t bus, dev } rv = rman_reserve_resource(rm, start, end, count, flags, child); - if (rv == 0) + if (rv == NULL) return (0); rman_set_rid(rv, *rid); Modified: head/sys/mips/rt305x/obio.c ============================================================================== --- head/sys/mips/rt305x/obio.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/rt305x/obio.c Fri Apr 15 14:26:24 2016 (r298053) @@ -326,7 +326,7 @@ obio_alloc_resource(device_t bus, device } 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); } Modified: head/sys/mips/rt305x/rt305x_gpio.c ============================================================================== --- head/sys/mips/rt305x/rt305x_gpio.c Fri Apr 15 14:25:13 2016 (r298052) +++ head/sys/mips/rt305x/rt305x_gpio.c Fri Apr 15 14:26:24 2016 (r298053) @@ -562,7 +562,7 @@ rt305x_gpio_alloc_resource(device_t bus, } 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); }