Skip to contentSkip to conversation

kernel/sys.c: clean up some inconsistent indenting

PATCH New Jiapeng Chong 1 participant 1 message Feb 24, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/sys.c: clean up some inconsistent indenting

From: chongjiapeng <[email protected]>

Eliminate the follow smatch warning:

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

---
 kernel/sys.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/sys.c +3 -3
index 97dc9e5d6bf9..330de8b2d8f4 100644
@@ -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);
Signature · 1 line
2.19.1.6.gb485710b