tty: serial: fsl_lpuart: fix return value checking
authorMichael Walle <michael@walle.cc>
Wed, 25 Mar 2020 09:06:58 +0000 (10:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2020 14:34:05 +0000 (15:34 +0100)
commitd7c53fb081c6347675bcd6fc4a9306111c42c111
treeec943b76880598a53f207fbd5dd11d0f023a96b6
parentd0e7600b914c9fd4935fe6dabf0cd5d71cb94347
tty: serial: fsl_lpuart: fix return value checking

The return value of lpuart_dma_tx_request() is an negative errno on
failure and zero on success.

Fixes: 159381df1442f ("tty: serial: fsl_lpuart: fix DMA operation when using IOMMU")
Reported-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Link: https://lore.kernel.org/r/20200325090658.25967-2-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c