powerpc: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: jhibbits
This commit is contained in:
parent
e2d4ce8aef
commit
26f0e234f7
@ -836,9 +836,9 @@ disasm_fields(const struct opcode *popcode, instr_t instr, vm_offset_t loc,
|
||||
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);
|
||||
|
@ -257,7 +257,7 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
|
||||
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;
|
||||
|
||||
|
@ -312,7 +312,7 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
|
||||
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;
|
||||
|
||||
|
@ -272,7 +272,7 @@ iobus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
|
||||
{
|
||||
struct iobus_devinfo *dinfo;
|
||||
|
||||
if ((dinfo = device_get_ivars(child)) == 0)
|
||||
if ((dinfo = device_get_ivars(child)) == NULL)
|
||||
return (ENOENT);
|
||||
|
||||
switch (which) {
|
||||
|
Loading…
Reference in New Issue
Block a user