sched, sysctl: Delete an unnecessary check before unregister_sysctl_table()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 4 Jul 2015 07:06:32 +0000 (09:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 10:21:21 +0000 (12:21 +0200)
commit781b0203423c228b100aaaf169c77b2b556f8a49
tree5d86775da425f5ab11e1bc677840d73dfe125b90
parent3fe33bcdd358dd8c641cf4d92c9d2d9972ca94dd
sched, sysctl: Delete an unnecessary check before unregister_sysctl_table()

The unregister_sysctl_table() function tests whether its argument is NULL
and then returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/5597877E.3060503@users.sourceforge.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c