Date: Fri, 15 Apr 2016 14:25:13 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298052 - in head/sys/powerpc: powerpc psim Message-ID: <201604151425.u3FEPEgq058891@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Fri Apr 15 14:25:13 2016 New Revision: 298052 URL: https://svnweb.freebsd.org/changeset/base/298052 Log: powerpc: for pointers replace 0 with NULL. These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: jhibbits Modified: head/sys/powerpc/powerpc/db_disasm.c head/sys/powerpc/powerpc/elf32_machdep.c head/sys/powerpc/powerpc/elf64_machdep.c head/sys/powerpc/psim/iobus.c Modified: head/sys/powerpc/powerpc/db_disasm.c ============================================================================== --- head/sys/powerpc/powerpc/db_disasm.c Fri Apr 15 14:19:25 2016 (r298051) +++ head/sys/powerpc/powerpc/db_disasm.c Fri Apr 15 14:25:13 2016 (r298052) @@ -836,9 +836,9 @@ disasm_fields(const struct opcode *popco reg = "tbu"; break; default: - reg = 0; + reg = NULL; } - if (reg == 0) + if (reg == NULL) pstr += sprintf(pstr, ", [unknown tbr %d ]", tbr); else pstr += sprintf(pstr, ", %s", reg); Modified: head/sys/powerpc/powerpc/elf32_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/elf32_machdep.c Fri Apr 15 14:19:25 2016 (r298051) +++ head/sys/powerpc/powerpc/elf32_machdep.c Fri Apr 15 14:25:13 2016 (r298052) @@ -257,7 +257,7 @@ elf_reloc_internal(linker_file_t lf, Elf void elf_reloc_self(Elf_Dyn *dynp, Elf_Addr relocbase) { - Elf_Rela *rela = 0, *relalim; + Elf_Rela *rela = NULL, *relalim; Elf_Addr relasz = 0; Elf_Addr *where; Modified: head/sys/powerpc/powerpc/elf64_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/elf64_machdep.c Fri Apr 15 14:19:25 2016 (r298051) +++ head/sys/powerpc/powerpc/elf64_machdep.c Fri Apr 15 14:25:13 2016 (r298052) @@ -312,7 +312,7 @@ elf_reloc_internal(linker_file_t lf, Elf void elf_reloc_self(Elf_Dyn *dynp, Elf_Addr relocbase) { - Elf_Rela *rela = 0, *relalim; + Elf_Rela *rela = NULL, *relalim; Elf_Addr relasz = 0; Elf_Addr *where; Modified: head/sys/powerpc/psim/iobus.c ============================================================================== --- head/sys/powerpc/psim/iobus.c Fri Apr 15 14:19:25 2016 (r298051) +++ head/sys/powerpc/psim/iobus.c Fri Apr 15 14:25:13 2016 (r298052) @@ -272,7 +272,7 @@ iobus_read_ivar(device_t dev, device_t c { struct iobus_devinfo *dinfo; - if ((dinfo = device_get_ivars(child)) == 0) + if ((dinfo = device_get_ivars(child)) == NULL) return (ENOENT); switch (which) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604151425.u3FEPEgq058891>