diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2012-02-03 14:48:03 +0000 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2012-04-06 18:49:58 +0300 |
commit | 1e6722f8b0c1eaff305c39d32c07054450ebdad1 (patch) | |
tree | f475270d2d55dcca5cdbdb0e7b5b7a8ac7785ed3 /linux-user | |
parent | 288e65b9eea0c9b3cbe21be46f3e24e4e8b2a090 (diff) |
linux-user/syscall.c: Fix indentation in prctl handling
Clean up the odd indentation of this switch statement before
we double its size by adding new cases to it.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fdd49b1940..ea44f99a99 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7242,21 +7242,22 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, goto unimplemented; #endif case TARGET_NR_prctl: - switch (arg1) - { - case PR_GET_PDEATHSIG: - { - int deathsig; - ret = get_errno(prctl(arg1, &deathsig, arg3, arg4, arg5)); - if (!is_error(ret) && arg2 - && put_user_ual(deathsig, arg2)) - goto efault; - } - break; - default: - ret = get_errno(prctl(arg1, arg2, arg3, arg4, arg5)); - break; + switch (arg1) { + case PR_GET_PDEATHSIG: + { + int deathsig; + ret = get_errno(prctl(arg1, &deathsig, arg3, arg4, arg5)); + if (!is_error(ret) && arg2 + && put_user_ual(deathsig, arg2)) { + goto efault; } + break; + } + default: + /* Most prctl options have no pointer arguments */ + ret = get_errno(prctl(arg1, arg2, arg3, arg4, arg5)); + break; + } break; #ifdef TARGET_NR_arch_prctl case TARGET_NR_arch_prctl: |