style: change NULL to nullptr in syscall files

Change-Id: I02719f3572f6665cace1eb5681f297dcde9e71ce
Reviewed-on: https://gem5-review.googlesource.com/2271
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Michael LeBeane <Michael.Lebeane@amd.com>
Reviewed-by: Tony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
Brandon Potter 2017-03-01 15:15:51 -06:00
parent 691a4574b4
commit 011ddf96fa
2 changed files with 3 additions and 3 deletions

View file

@ -889,7 +889,7 @@ setpgidFunc(SyscallDesc *desc, int callnum, Process *process,
return 0;
}
Process *matched_ph = NULL;
Process *matched_ph = nullptr;
System *sysh = tc->getSystemPtr();
// Retrieves process pointer from active/suspended thread contexts.
@ -903,7 +903,7 @@ setpgidFunc(SyscallDesc *desc, int callnum, Process *process,
}
}
assert(matched_ph != NULL);
assert(matched_ph);
matched_ph->setpgid((pgid == 0) ? matched_ph->pid() : pgid);
return 0;

View file

@ -1484,7 +1484,7 @@ mmapImpl(SyscallDesc *desc, int num, Process *p, ThreadContext *tc,
return -EBADF;
sim_fd = ffdp->getSimFD();
pmap = (decltype(pmap))mmap(NULL, length, PROT_READ, MAP_PRIVATE,
pmap = (decltype(pmap))mmap(nullptr, length, PROT_READ, MAP_PRIVATE,
sim_fd, offset);
if (pmap == (decltype(pmap))-1) {