Skip to contentSkip to conversation

powerpc: remove redundant space

PATCH In review maqiang 2 participants 2 messages Mar 3, 2021 PowerPC

lore
Share & tools
lore

maqiang

author
#0 lore raw

PATCH 1/1 powerpc: remove redundant space

These one line of code don't meet the kernel coding style, so remove the redundant space.

---
 arch/powerpc/kernel/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/syscalls.c +1 -1
index 078608ec2e92..9248288752d5 100644
@@ -81,7 +81,7 @@ 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))
Signature · 1 line
2.20.1
#1 lore raw

maqiang <[email protected]> a écrit :

Quoted 2 lines

These one line of code don't meet the kernel coding style, so remove the redundant space.

There seems to be several other style issues in this function and in the following one too. You should fix them all at once I think.

Quoted 22 lines
---
 arch/powerpc/kernel/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/syscalls.c +1 -1
index 078608ec2e92..9248288752d5 100644
@@ -81,7 +81,7 @@ 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))
--
2.20.1