From: devesh pradhan <devesh.pradh...@gmail.com> Fixed a coding style issue.
Signed-off-by: devesh pradhan <devesh.pradh...@gmail.com> --- kernel/compat.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/kernel/compat.c b/kernel/compat.c index d1cee656a7ed..d40c83792ae9 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -475,10 +475,14 @@ get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat) if (copy_from_user(&v, compat, sizeof(compat_sigset_t))) return -EFAULT; switch (_NSIG_WORDS) { - case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 ); - case 3: set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32 ); - case 2: set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32 ); - case 1: set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32 ); + case 4: + set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32); + case 3: + set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32); + case 2: + set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32); + case 1: + set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32); } #else if (copy_from_user(set, compat, sizeof(compat_sigset_t))) @@ -496,10 +500,14 @@ put_compat_sigset(compat_sigset_t __user *compat, const sigset_t *set, #ifdef __BIG_ENDIAN compat_sigset_t v; switch (_NSIG_WORDS) { - case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; - case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; - case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; - case 1: v.sig[1] = (set->sig[0] >> 32); v.sig[0] = set->sig[0]; + case 4: + v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; + case 3: + v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; + case 2: + v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; + case 1: + v.sig[1] = (set->sig[0] >> 32); v.sig[0] = set->sig[0]; } return copy_to_user(compat, &v, size) ? -EFAULT : 0; #else -- 2.14.1