diff options
| author | Nikitas Angelinas <[email protected]> | 2017-07-30 03:36:36 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2017-08-15 14:28:16 +0000 |
| commit | 077a1cc06f72f95efd077d433993c16191008e47 (patch) | |
| tree | 5d1c7194b36b9a05315c1f12e6cba42aa792bcfa /lib/dump_stack.c | |
| parent | printk/console: Enhance the check for consoles using init memory (diff) | |
| download | kernel-077a1cc06f72f95efd077d433993c16191008e47.tar.gz kernel-077a1cc06f72f95efd077d433993c16191008e47.zip | |
printk: Clean up do_syslog() error handling
The error variable in do_syslog() is preemptively set to the error code
before the error condition is checked, and then set to 0 if the error
condition is not encountered. This is not necessary, as it is likely
simpler to return immediately upon encountering the error condition. A
redundant set of the error variable to 0 is also removed.
This patch has been build-tested on x86_64, but not tested for
functionality.
Link: http://lkml.kernel.org/r/20170730033636.GA935@vostro
Cc: Steven Rostedt <[email protected]>
Cc: [email protected]
Signed-off-by: Nikitas Angelinas <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions
