diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-03-10 20:43:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-12 19:16:42 +0300 |
commit | da9a5aa3402db0ff3b57216d8dbf2478e1046cae (patch) | |
tree | 68a1c9251658275b2f7f8604f2d6d5277d034ebc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e140ef36925f54770fccb8e42be8cc8365221b51 (diff) | |
download | linux-da9a5aa3402db0ff3b57216d8dbf2478e1046cae.tar.xz |
serial: core: Refactor uart_unlock_and_check_sysrq()
Refactor uart_unlock_and_check_sysrq() to:
- explicitly show that we release a port lock which makes
static analyzers happy:
CHECK drivers/tty/serial/serial_core.c
.../serial_core.c:3290:17: warning: context imbalance in 'uart_unlock_and_check_sysrq' - unexpected unlock
- use flags instead of irqflags to avoid confusion with IRQ flags
- provide one return point
- be more compact
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://lore.kernel.org/r/20200310174337.74109-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions