if (request->payload_size < sizeof(*receive_data)) {
dev_err(&gb_tty->gbphy_dev->dev,
- "short receive-data request received (%zu < %zu)\n",
- request->payload_size, sizeof(*receive_data));
+ "short receive-data request received (%zu < %zu)\n",
+ request->payload_size, sizeof(*receive_data));
return -EINVAL;
}
if (recv_data_size != request->payload_size - sizeof(*receive_data)) {
dev_err(&gb_tty->gbphy_dev->dev,
- "malformed receive-data request received (%u != %zu)\n",
- recv_data_size,
- request->payload_size - sizeof(*receive_data));
+ "malformed receive-data request received (%u != %zu)\n",
+ recv_data_size,
+ request->payload_size - sizeof(*receive_data));
return -EINVAL;
}
if (request->payload_size < sizeof(*serial_state)) {
dev_err(&gb_tty->gbphy_dev->dev,
- "short serial-state event received (%zu < %zu)\n",
- request->payload_size, sizeof(*serial_state));
+ "short serial-state event received (%zu < %zu)\n",
+ request->payload_size, sizeof(*serial_state));
return -EINVAL;
}
if (request->payload_size < sizeof(*credit_request)) {
dev_err(&gb_tty->gbphy_dev->dev,
- "short receive_credits event received (%zu < %zu)\n",
- request->payload_size,
- sizeof(*credit_request));
+ "short receive_credits event received (%zu < %zu)\n",
+ request->payload_size,
+ sizeof(*credit_request));
return -EINVAL;
}
send_size = gb_tty->credits;
send_size = kfifo_out_peek(&gb_tty->write_fifo,
- &request->data[0],
- send_size);
+ &request->data[0],
+ send_size);
if (!send_size) {
spin_unlock_irqrestore(&gb_tty->write_lock, flags);
break;
struct gb_tty *gb_tty = tty->driver_data;
count = kfifo_in_spinlocked(&gb_tty->write_fifo, buf, count,
- &gb_tty->write_lock);
+ &gb_tty->write_lock);
if (count && !gb_tty->close_pending)
schedule_work(&gb_tty->tx_work);
INIT_WORK(&gb_tty->tx_work, gb_uart_tx_write_work);
retval = kfifo_alloc(&gb_tty->write_fifo, GB_UART_WRITE_FIFO_SIZE,
- GFP_KERNEL);
+ GFP_KERNEL);
if (retval)
goto exit_buf_free;