[PATCH] kernel: exit: fix coding style missing spaces

mingzhu.wang(王明珠) posted 1 patch 1 month ago
There is a newer version of this series
kernel/exit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] kernel: exit: fix coding style missing spaces
Posted by mingzhu.wang(王明珠) 1 month ago
From: mingzhu wang <mingzhu.wang@transsion.com>

Add spaces around bitwise AND and shift operators in sys_exit()
to comply with the Linux kernel coding style.

Signed-off-by: mingzhu wang <mingzhu.wang@transsion.com>
---
 kernel/exit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/exit.c b/kernel/exit.c
index 25e9cb6de..63571518c 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1081,7 +1081,7 @@ void __noreturn make_task_dead(int signr)
 
 SYSCALL_DEFINE1(exit, int, error_code)
 {
-	do_exit((error_code&0xff)<<8);
+	do_exit((error_code & 0xff) << 8);
 }
 
 /*
-- 
2.52.0