summaryrefslogtreecommitdiffstats
path: root/init/Kconfig
diff options
context:
space:
mode:
authorStanislav Kinsburskii <stanislav.kinsburski@gmail.com>2023-03-20 08:02:01 +0100
committerPetr Mladek <pmladek@suse.com>2023-04-03 12:05:17 +0200
commitbee43904dc774b35bb159693ff3f3ff222590bb1 (patch)
tree9f29558b96d47adc69f2a7f43c59b3bbd98abfaf /init/Kconfig
parentlib/vsprintf: Use isodigit() for the octal number check (diff)
downloadlinux-bee43904dc774b35bb159693ff3f3ff222590bb1.tar.xz
linux-bee43904dc774b35bb159693ff3f3ff222590bb1.zip
printk: Remove obsoleted check for non-existent "user" object
The original check for non-null "user" object was introduced by commit e11fea92e13f ("kmsg: export printk records to the /dev/kmsg interface") when "user" could be NULL if /dev/ksmg was opened for writing. Subsequent change 750afe7babd1 ("printk: add kernel parameter to control writes to /dev/kmsg") made "user" context required for files opened for write, but didn't remove now redundant checks for it to be non-NULL. This patch removes the dead code while preserving the current logic. Signed-off-by: Stanislav Kinsburskii <stanislav.kinsburski@gmail.com> CC: Petr Mladek <pmladek@suse.com> CC: Sergey Senozhatsky <senozhatsky@chromium.org> CC: Steven Rostedt <rostedt@goodmis.org> CC: John Ogness <john.ogness@linutronix.de> CC: linux-kernel@vger.kernel.org Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/167929571877.2810.9926967619100618792.stgit@skinsburskii.localdomain
Diffstat (limited to 'init/Kconfig')
0 files changed, 0 insertions, 0 deletions