hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/tty/serial/8250/8250_ingenic.c
....@@ -146,8 +146,6 @@
146146
147147 static void ingenic_uart_serial_out(struct uart_port *p, int offset, int value)
148148 {
149
- unsigned int flags;
150
- bool is_console;
151149 int ier;
152150
153151 switch (offset) {
....@@ -169,12 +167,7 @@
169167 * If we have enabled modem status IRQs we should enable
170168 * modem mode.
171169 */
172
- is_console = uart_console(p);
173
- if (is_console)
174
- console_atomic_lock(&flags);
175170 ier = p->serial_in(p, UART_IER);
176
- if (is_console)
177
- console_atomic_unlock(flags);
178171
179172 if (ier & UART_IER_MSI)
180173 value |= UART_MCR_MDCE | UART_MCR_FCM;