STM32 Serial: Fix some incorrect conditional compilation

This commit is contained in:
Gregory Nutt 2017-09-23 10:58:50 -06:00
parent d2799f0b4e
commit b065b1f5df

View File

@ -2017,7 +2017,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
/* Perform some sanity checks before accepting any changes */
if (((termiosp->c_cflag & CSIZE) != CS8)
#ifdef CONFIG_SERIAL_IFLOWCONTROL
#ifdef CONFIG_SERIAL_OFLOWCONTROL
|| ((termiosp->c_cflag & CCTS_OFLOW) && (priv->cts_gpio == 0))
#endif
#ifdef CONFIG_SERIAL_IFLOWCONTROL