mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
usb/cdcacm: Remove the process for tc_iflag, tc_oflag and tc_lflag
since the common code in serial.c already handle them correctly: https://github.com/apache/nuttx/blob/master/drivers/serial/serial.c#L1556-L1601 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -2339,9 +2339,6 @@ static int cdcuart_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
/* And update with flags from this layer */
|
||||
|
||||
termiosp->c_iflag = serdev->tc_iflag;
|
||||
termiosp->c_oflag = serdev->tc_oflag;
|
||||
termiosp->c_lflag = serdev->tc_lflag;
|
||||
termiosp->c_cflag =
|
||||
((priv->linecoding.parity != CDC_PARITY_NONE) ? PARENB : 0) |
|
||||
((priv->linecoding.parity == CDC_PARITY_ODD) ? PARODD : 0) |
|
||||
@@ -2380,10 +2377,6 @@ static int cdcuart_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
/* Update the flags we keep at this layer */
|
||||
|
||||
serdev->tc_iflag = termiosp->c_iflag;
|
||||
serdev->tc_oflag = termiosp->c_oflag;
|
||||
serdev->tc_lflag = termiosp->c_lflag;
|
||||
|
||||
#ifdef CONFIG_CDCACM_OFLOWCONTROL
|
||||
/* Handle changes to output flow control */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user