]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
serial: imx: Add braces to avoid ambiguous 'else'
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 10 Mar 2015 15:46:29 +0000 (12:46 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2015 12:55:20 +0000 (13:55 +0100)
commit12fe59f975b9b36a17eced4c4d33911ee9bc9f7a
tree088ce7fbc096399786005a1a7643862ca1e3f6f1
parent13bc2bb9a0075342707e853e6dac298f0bbca111
serial: imx: Add braces to avoid ambiguous 'else'

Commit 17b8f2a3fdca29 ("serial: imx: add support for half duplex rs485")
introduced the following build warning:

drivers/tty/serial/imx.c: In function 'imx_set_termios':
drivers/tty/serial/imx.c:1301:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]

Add the suggested braces to avoid the build warning.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c