提交 3b1f3154 编写于 作者: P Peter Hurley 提交者: Greg Kroah-Hartman

staging/fwserial: Fold constant MAX_ASYNC_PAYLOAD

Since peer->max_payload is now limited to 1394-2008 spec maximum
of 4096, the port->max_payload limit can now be simplified.
Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d8356189
...@@ -1683,8 +1683,7 @@ static void fwserial_virt_plug_complete(struct fwtty_peer *peer, ...@@ -1683,8 +1683,7 @@ static void fwserial_virt_plug_complete(struct fwtty_peer *peer,
/* reconfigure tx_fifo optimally for this peer */ /* reconfigure tx_fifo optimally for this peer */
spin_lock_bh(&port->lock); spin_lock_bh(&port->lock);
port->max_payload = min3(peer->max_payload, peer->fifo_len, port->max_payload = min(peer->max_payload, peer->fifo_len);
MAX_ASYNC_PAYLOAD);
dma_fifo_change_tx_limit(&port->tx_fifo, port->max_payload); dma_fifo_change_tx_limit(&port->tx_fifo, port->max_payload);
spin_unlock_bh(&peer->port->lock); spin_unlock_bh(&peer->port->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册