Skip to content

Commit 27e37d8

Browse files
Kefeng Wangtorvalds
authored andcommitted
pid: kill pidhash_size in pidhash_init()
After commit 3d375d7 ("mm: update callers to use HASH_ZERO flag"), drop unused pidhash_size in pidhash_init(). Link: http://lkml.kernel.org/r/1500389267-49222-1-git-send-email-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Reviewed-by: Pavel Tatashin <Pasha.Tatashin@Oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2be7cfe commit 27e37d8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/pid.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,10 @@ struct pid *find_ge_pid(int nr, struct pid_namespace *ns)
575575
*/
576576
void __init pidhash_init(void)
577577
{
578-
unsigned int pidhash_size;
579-
580578
pid_hash = alloc_large_system_hash("PID", sizeof(*pid_hash), 0, 18,
581579
HASH_EARLY | HASH_SMALL | HASH_ZERO,
582580
&pidhash_shift, NULL,
583581
0, 4096);
584-
pidhash_size = 1U << pidhash_shift;
585582
}
586583

587584
void __init pidmap_init(void)

0 commit comments

Comments
 (0)