serial: core: Drop duplicate NULL check in uart_*shutdown()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 4 Feb 2022 15:28:08 +0000 (17:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 15:58:59 +0000 (16:58 +0100)
commit186ab09930aac24fad59a56d22ea507c8505b84f
tree6be81a53854b5bab50fa5779a33057006d1beaf1
parent3c5b2f5b9a829992f3760395a64d6102f11fe62d
serial: core: Drop duplicate NULL check in uart_*shutdown()

The free_page(addr), which becomes free_pages(addr, 0) checks addr
against 0. No need to repeat this check in the callers.

Acked-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220204152808.10808-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c