提交 9e8e2d2a 编写于 作者: A Alan Cox 提交者: Linus Torvalds

tty-usb-iuu-phoenix: Clean up to coding style

Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6d1d1698
...@@ -318,11 +318,10 @@ static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count) ...@@ -318,11 +318,10 @@ static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
port->bulk_out_endpointAddress), buf, port->bulk_out_endpointAddress), buf,
count, &actual, HZ * 1); count, &actual, HZ * 1);
if (status != IUU_OPERATION_OK) { if (status != IUU_OPERATION_OK)
dbg("%s - error = %2x", __func__, status); dbg("%s - error = %2x", __func__, status);
} else { else
dbg("%s - write OK !", __func__); dbg("%s - write OK !", __func__);
}
return status; return status;
} }
...@@ -342,12 +341,10 @@ static int read_immediate(struct usb_serial_port *port, u8 *buf, u8 count) ...@@ -342,12 +341,10 @@ static int read_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
port->bulk_in_endpointAddress), buf, port->bulk_in_endpointAddress), buf,
count, &actual, HZ * 1); count, &actual, HZ * 1);
if (status != IUU_OPERATION_OK) { if (status != IUU_OPERATION_OK)
dbg("%s - error = %2x", __func__, status); dbg("%s - error = %2x", __func__, status);
} else { else
dbg("%s - read OK !", __func__); dbg("%s - read OK !", __func__);
}
return status; return status;
} }
...@@ -770,14 +767,14 @@ static int iuu_uart_write(struct tty_struct *tty, struct usb_serial_port *port, ...@@ -770,14 +767,14 @@ static int iuu_uart_write(struct tty_struct *tty, struct usb_serial_port *port,
if (priv->writelen > 0) { if (priv->writelen > 0) {
/* buffer already filled but not commited */ /* buffer already filled but not commited */
spin_unlock_irqrestore(&priv->lock, flags); spin_unlock_irqrestore(&priv->lock, flags);
return (0); return 0;
} }
/* fill the buffer */ /* fill the buffer */
memcpy(priv->writebuf, buf, count); memcpy(priv->writebuf, buf, count);
priv->writelen = count; priv->writelen = count;
spin_unlock_irqrestore(&priv->lock, flags); spin_unlock_irqrestore(&priv->lock, flags);
return (count); return count;
} }
static void read_rxcmd_callback(struct urb *urb) static void read_rxcmd_callback(struct urb *urb)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册