serial: 8250_dw: Deduplicate LCR checks
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 12 Apr 2024 17:39:31 +0000 (20:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 11:14:06 +0000 (13:14 +0200)
commit6a533ed7350af50322a7e478a6557f1368222ea3
treeef8211efb0f05fbb0897325d3128aff466d2713a
parent5cb90c636d950c23ee63eea31fd03edbae99921f
serial: 8250_dw: Deduplicate LCR checks

All callers of dw8250_check_lcr() perform the same check.
Deduplicate it by moving them into respective call.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240412173931.187411-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c