mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
USB: serial: digi_acceleport: clean up inb command submission
Clean up the inb command handling a bit by removing an unnecessary line break and moving the assignment operator before breaking another long expression. Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
cc94b7b0cd
commit
fdb85e08aa
|
|
@ -460,11 +460,10 @@ static int digi_write_inb_command(struct usb_serial_port *port,
|
|||
if (priv->dp_out_buf_len > 0) {
|
||||
data[0] = DIGI_CMD_SEND_DATA;
|
||||
data[1] = priv->dp_out_buf_len;
|
||||
memcpy(data + 2, priv->dp_out_buf,
|
||||
priv->dp_out_buf_len);
|
||||
memcpy(data + 2, priv->dp_out_buf, priv->dp_out_buf_len);
|
||||
memcpy(data + 2 + priv->dp_out_buf_len, buf, len);
|
||||
port->write_urb->transfer_buffer_length
|
||||
= priv->dp_out_buf_len + 2 + len;
|
||||
port->write_urb->transfer_buffer_length =
|
||||
priv->dp_out_buf_len + 2 + len;
|
||||
} else {
|
||||
memcpy(data, buf, len);
|
||||
port->write_urb->transfer_buffer_length = len;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user