Jiri Slaby 602c802114 serial: move WARN_ON() in uart_write() to the condition
uart code currently does the following in uart_write() and
uart_flush_buffer():
  if (cond) {
    WARN_ON(1);
    return;
  }

It can be rewritten to more obvious and more readable:
  if (WARN_ON(cond))
    return;

Do so.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230731080244.2698-2-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-31 17:16:04 +02:00
..
2023-07-31 09:39:56 +02:00
2023-06-05 07:41:04 +02:00
2023-07-25 19:21:04 +02:00
2023-07-03 13:14:58 -07:00
2021-07-27 12:17:21 +02:00
2022-11-03 03:32:40 +01:00
2023-07-31 09:39:56 +02:00
2023-07-31 09:39:56 +02:00
2023-07-31 09:39:56 +02:00
2023-07-31 09:39:56 +02:00
2023-07-25 19:21:04 +02:00