tty: serial: qcom_geni_serial: Cleanup redundant code
authorKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
Thu, 3 May 2018 20:14:34 +0000 (14:14 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 11:44:54 +0000 (13:44 +0200)
commit6a10635e90e8cb000e6aa8f1292f5aed4c8369e3
tree907aee9039d8ff3d31eeaeb41b53f835f26c64fa
parentf02625689e543165d840aa0eb9cf2945636de25d
tty: serial: qcom_geni_serial: Cleanup redundant code

* Remove redundant casting while using min_t
* Remove redundant initialization of port_setup flag
* Remove redundant error checking in get_tx_fifo_size
* Remove logging redundant error code in debug messages
* Remove redundant disable_irq before free_irq

Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c