Skip to content

Commit 96e1e98

Browse files
Alexander GurilChristian Brauner
authored andcommitted
Kernel: fork.c: Fix coding style: Do not use {} around single-line statements
Fixed two coding style issues in kernel/fork.c Do not use {} around single-line statements. Cc: linux-kernel@vger.kernel.org Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Alexander Guril <alexander.guril02@gmail.com> Link: https://lore.kernel.org/r/20201226114021.2589-1-alexander.guril02@gmail.com Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
1 parent adc5d87 commit 96e1e98

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

kernel/fork.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,8 @@ void __init fork_init(void)
819819
init_task.signal->rlim[RLIMIT_SIGPENDING] =
820820
init_task.signal->rlim[RLIMIT_NPROC];
821821

822-
for (i = 0; i < UCOUNT_COUNTS; i++) {
822+
for (i = 0; i < UCOUNT_COUNTS; i++)
823823
init_user_ns.ucount_max[i] = max_threads/2;
824-
}
825824

826825
#ifdef CONFIG_VMAP_STACK
827826
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)
16541653
{
16551654
enum pid_type type;
16561655

1657-
for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) {
1656+
for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type)
16581657
INIT_HLIST_NODE(&task->pid_links[type]);
1659-
}
16601658
}
16611659

16621660
static inline void

0 commit comments

Comments
 (0)