aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorStanislav Kinsburskii <[email protected]>2023-03-20 00:02:01 -0700
committerPetr Mladek <[email protected]>2023-04-03 12:05:17 +0200
commitbee43904dc774b35bb159693ff3f3ff222590bb1 (patch)
tree9f29558b96d47adc69f2a7f43c59b3bbd98abfaf /lib/test_fortify/write_overflow-strncpy-src.c
parent48e1a66fecb4e8b64cf2a0a8978c048990181d94 (diff)
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 <[email protected]> CC: Petr Mladek <[email protected]> CC: Sergey Senozhatsky <[email protected]> CC: Steven Rostedt <[email protected]> CC: John Ogness <[email protected]> CC: [email protected] Reviewed-by: Sergey Senozhatsky <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/167929571877.2810.9926967619100618792.stgit@skinsburskii.localdomain
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions