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>
This commit is contained in:
Родитель
adc5d87572
Коммит
96e1e9846c
|
@ -819,9 +819,8 @@ void __init fork_init(void)
|
||||||
init_task.signal->rlim[RLIMIT_SIGPENDING] =
|
init_task.signal->rlim[RLIMIT_SIGPENDING] =
|
||||||
init_task.signal->rlim[RLIMIT_NPROC];
|
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;
|
init_user_ns.ucount_max[i] = max_threads/2;
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef CONFIG_VMAP_STACK
|
#ifdef CONFIG_VMAP_STACK
|
||||||
cpuhp_setup_state(CPUHP_BP_PREPARE_DYN, "fork:vm_stack_cache",
|
cpuhp_setup_state(CPUHP_BP_PREPARE_DYN, "fork:vm_stack_cache",
|
||||||
|
@ -1654,10 +1653,9 @@ static inline void init_task_pid_links(struct task_struct *task)
|
||||||
{
|
{
|
||||||
enum pid_type type;
|
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]);
|
INIT_HLIST_NODE(&task->pid_links[type]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
init_task_pid(struct task_struct *task, enum pid_type type, struct pid *pid)
|
init_task_pid(struct task_struct *task, enum pid_type type, struct pid *pid)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче