Commit bee4390
printk: Remove obsoleted check for non-existent "user" object
The original check for non-null "user" object was introduced by commit
e11fea9 ("kmsg: export printk records to the /dev/kmsg interface")
when "user" could be NULL if /dev/ksmg was opened for writing.
Subsequent change 750afe7 ("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.localdomain1 parent 48e1a66 commit bee4390
1 file changed
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | 795 | | |
799 | 796 | | |
800 | 797 | | |
| |||
859 | 856 | | |
860 | 857 | | |
861 | 858 | | |
862 | | - | |
863 | | - | |
864 | 859 | | |
865 | 860 | | |
866 | 861 | | |
| |||
893 | 888 | | |
894 | 889 | | |
895 | 890 | | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | 891 | | |
900 | 892 | | |
901 | 893 | | |
| |||
944 | 936 | | |
945 | 937 | | |
946 | 938 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | 939 | | |
951 | 940 | | |
952 | 941 | | |
| |||
0 commit comments