* [PATCH] Kernel: fork.c: Fix coding style: Do not use {} around single-line statements
@ 2020-12-26 11:40 Alexander Guril
2020-12-29 12:48 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Guril @ 2020-12-26 11:40 UTC (permalink / raw)
To: christian.brauner; +Cc: linux-kernel, Alexander Guril
Fixed two coding style issues in kernel/fork.c
Do not use {} around single-line statements.
Signed-off-by: Alexander Guril <alexander.guril02@gmail.com>
---
kernel/fork.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/kernel/fork.c b/kernel/fork.c
index 37720a6d04ea..d66cd1014211 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -819,9 +819,8 @@ void __init fork_init(void)
init_task.signal->rlim[RLIMIT_SIGPENDING] =
init_task.signal->rlim[RLIMIT_NPROC];
- for (i = 0; i < UCOUNT_COUNTS; i++) {
+ for (i = 0; i < UCOUNT_COUNTS; i++)
init_user_ns.ucount_max[i] = max_threads/2;
- }
#ifdef CONFIG_VMAP_STACK
cpuhp_setup_state(CPUHP_BP_PREPARE_DYN, "fork:vm_stack_cache",
@@ -1654,9 +1653,8 @@ static inline void init_task_pid_links(struct task_struct *task)
{
enum pid_type type;
- for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) {
+ for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type)
INIT_HLIST_NODE(&task->pid_links[type]);
- }
}
static inline void
--
2.29.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Kernel: fork.c: Fix coding style: Do not use {} around single-line statements
2020-12-26 11:40 [PATCH] Kernel: fork.c: Fix coding style: Do not use {} around single-line statements Alexander Guril
@ 2020-12-29 12:48 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2020-12-29 12:48 UTC (permalink / raw)
To: Alexander Guril; +Cc: linux-kernel
On Sat, Dec 26, 2020 at 12:40:21PM +0100, Alexander Guril wrote:
> Fixed two coding style issues in kernel/fork.c
> Do not use {} around single-line statements.
>
> Signed-off-by: Alexander Guril <alexander.guril02@gmail.com>
> ---
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
I'll pick this up, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-29 12:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-26 11:40 [PATCH] Kernel: fork.c: Fix coding style: Do not use {} around single-line statements Alexander Guril
2020-12-29 12:48 ` Christian Brauner
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®