diff options
| author | Stanislav Kinsburskii <[email protected]> | 2023-03-20 07:02:01 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2023-04-03 10:05:17 +0000 |
| commit | bee43904dc774b35bb159693ff3f3ff222590bb1 (patch) | |
| tree | 9f29558b96d47adc69f2a7f43c59b3bbd98abfaf /drivers/platform/x86/intel/vsec.c | |
| parent | lib/vsprintf: Use isodigit() for the octal number check (diff) | |
| download | kernel-bee43904dc774b35bb159693ff3f3ff222590bb1.tar.gz kernel-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 <[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 'drivers/platform/x86/intel/vsec.c')
0 files changed, 0 insertions, 0 deletions
