mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel/sys.c: clean up some inconsistent indenting
@ 2022-02-24 10:51 Jiapeng Chong
  0 siblings, 0 replies; only message in thread
From: Jiapeng Chong @ 2022-02-24 10:51 UTC (permalink / raw)
  To: chris.hyser
  Cc: ran.xiaokai, ccross, pcc, dave, david, caoxiaofeng, linux-kernel,
	chongjiapeng, Abaci Robot

From: chongjiapeng <jiapeng.chong@linux.alibaba.com>

Eliminate the follow smatch warning:

kernel/sys.c:1617 do_prlimit() warn: inconsistent indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: chongjiapeng <jiapeng.chong@linux.alibaba.com>
---
 kernel/sys.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index 97dc9e5d6bf9..330de8b2d8f4 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -1614,9 +1614,9 @@ int do_prlimit(struct task_struct *tsk, unsigned int resource,
 	 * infinite. In case of RLIM_INFINITY the posix CPU timer code
 	 * ignores the rlimit.
 	 */
-	 if (!retval && new_rlim && resource == RLIMIT_CPU &&
-	     new_rlim->rlim_cur != RLIM_INFINITY &&
-	     IS_ENABLED(CONFIG_POSIX_TIMERS))
+	if (!retval && new_rlim && resource == RLIMIT_CPU &&
+	    new_rlim->rlim_cur != RLIM_INFINITY &&
+	    IS_ENABLED(CONFIG_POSIX_TIMERS))
 		update_rlimit_cpu(tsk, new_rlim->rlim_cur);
 out:
 	read_unlock(&tasklist_lock);
-- 
2.19.1.6.gb485710b


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-24 10:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24 10:51 [PATCH] kernel/sys.c: clean up some inconsistent indenting Jiapeng Chong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®