diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-08-02 18:41:26 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-09-21 22:14:18 +0300 |
commit | 7cfbd386b92e93fbfae033b9ac89a20d1fe72573 (patch) | |
tree | 6a2596c7d9b1087fb4b76f73a8d70c187f203f55 /gdbstub.c | |
parent | c4b3574402053a88612eab3b66a53825a00145a2 (diff) | |
download | qemu-7cfbd386b92e93fbfae033b9ac89a20d1fe72573.zip qemu-7cfbd386b92e93fbfae033b9ac89a20d1fe72573.tar.gz qemu-7cfbd386b92e93fbfae033b9ac89a20d1fe72573.tar.bz2 |
linux-user: Remove unnecessary nptl_flags variable from do_fork()
The 'nptl_flags' variable in do_fork() is set to a copy of
'flags', and then the CLONE_NPTL_FLAGS are cleared out of 'flags'.
However the only effect of this is that the later check on
"if (flags & CLONE_PARENT_SETTID)" is never true. Since we
will already have done the setting of parent_tidptr in clone_func()
in the child thread, we don't need to do it again.
Delete the dead if() and the clearing of CLONE_NPTL_FLAGS from
'flags', and then use 'flags' where we were previously using
'nptl_flags', so we can delete the unnecessary variable.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'gdbstub.c')
0 files changed, 0 insertions, 0 deletions