diff options
author | Brandon Potter <Brandon.Potter@amd.com> | 2017-03-01 15:15:51 -0600 |
---|---|---|
committer | Brandon Potter <Brandon.Potter@amd.com> | 2017-03-09 22:42:45 +0000 |
commit | 011ddf96fabd64a1dad51b7183ea29fb3ee1cc19 (patch) | |
tree | 1171d3c5f31d818d6afca5db2a2e59ef7eebed70 /src/sim/syscall_emul.cc | |
parent | 691a4574b45530bb11ca5add9de9a2befdb17eb1 (diff) | |
download | gem5-011ddf96fabd64a1dad51b7183ea29fb3ee1cc19.tar.xz |
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>
Diffstat (limited to 'src/sim/syscall_emul.cc')
-rw-r--r-- | src/sim/syscall_emul.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc index 4cf17a266..8736176ed 100644 --- a/src/sim/syscall_emul.cc +++ b/src/sim/syscall_emul.cc @@ -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; |