There are several style issues in this function,
so fix them.

Signed-off-by: Qiang Ma <maqia...@uniontech.com>
---
 arch/powerpc/kernel/syscalls.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/powerpc/kernel/syscalls.c b/arch/powerpc/kernel/syscalls.c
index 078608ec2e92..bcbb5fb2a0c1 100644
--- a/arch/powerpc/kernel/syscalls.c
+++ b/arch/powerpc/kernel/syscalls.c
@@ -81,15 +81,15 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, size_t, len,
 int
 ppc_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, 
struct __kernel_old_timeval __user *tvp)
 {
-       if ( (unsigned long)n >= 4096 )
-       {
+       if ((unsigned long)n >= 4096) {
                unsigned long __user *buffer = (unsigned long __user *)n;
-               if (!access_ok(buffer, 5*sizeof(unsigned long))
+               if (!access_ok(buffer, 5 * sizeof(unsigned long))
                    || __get_user(n, buffer)
-                   || __get_user(inp, ((fd_set __user * __user *)(buffer+1)))
-                   || __get_user(outp, ((fd_set  __user * __user *)(buffer+2)))
-                   || __get_user(exp, ((fd_set  __user * __user *)(buffer+3)))
-                   || __get_user(tvp, ((struct __kernel_old_timeval  __user * 
__user *)(buffer+4))))
+                   || __get_user(inp, ((fd_set __user * __user *)(buffer + 1)))
+                   || __get_user(outp, ((fd_set  __user * __user *)(buffer + 
2)))
+                   || __get_user(exp, ((fd_set  __user * __user *)(buffer + 
3)))
+                   || __get_user(tvp,
+                           ((struct __kernel_old_timeval  __user * __user 
*)(buffer + 4))))
                        return -EFAULT;
        }
        return sys_select(n, inp, outp, exp, tvp);
-- 
2.20.1



Reply via email to