提交 6aeab477 编写于 作者: D Dan Carpenter 提交者: Greg Kroah-Hartman

USB: mos7720: delete some unneeded code

The "status" is uninitialized so this creates a static checker warning.
But it's harmless, we can just delete it.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 eb94ec7a
...@@ -1299,8 +1299,6 @@ static void mos7720_throttle(struct tty_struct *tty) ...@@ -1299,8 +1299,6 @@ static void mos7720_throttle(struct tty_struct *tty)
mos7720_port->shadowMCR &= ~UART_MCR_RTS; mos7720_port->shadowMCR &= ~UART_MCR_RTS;
write_mos_reg(port->serial, port->port_number, MCR, write_mos_reg(port->serial, port->port_number, MCR,
mos7720_port->shadowMCR); mos7720_port->shadowMCR);
if (status != 0)
return;
} }
} }
...@@ -1331,8 +1329,6 @@ static void mos7720_unthrottle(struct tty_struct *tty) ...@@ -1331,8 +1329,6 @@ static void mos7720_unthrottle(struct tty_struct *tty)
mos7720_port->shadowMCR |= UART_MCR_RTS; mos7720_port->shadowMCR |= UART_MCR_RTS;
write_mos_reg(port->serial, port->port_number, MCR, write_mos_reg(port->serial, port->port_number, MCR,
mos7720_port->shadowMCR); mos7720_port->shadowMCR);
if (status != 0)
return;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册