summaryrefslogtreecommitdiff
path: root/drivers/staging/fwserial/fwserial.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-01-29 01:57:47 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-30 04:26:16 (GMT)
commit3b1f315415d3e9b2648bec82c0c1cd9eff2d8743 (patch)
tree754ae945465f92c933dde9f4486ebfe5016d8043 /drivers/staging/fwserial/fwserial.c
parentd83561894db22ee9c40fdd85d49eb5ee573125cc (diff)
downloadlinux-fsl-qoriq-3b1f315415d3e9b2648bec82c0c1cd9eff2d8743.tar.xz
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: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fwserial/fwserial.c')
-rw-r--r--drivers/staging/fwserial/fwserial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c
index 5f54743..815c011 100644
--- a/drivers/staging/fwserial/fwserial.c
+++ b/drivers/staging/fwserial/fwserial.c
@@ -1683,8 +1683,7 @@ static void fwserial_virt_plug_complete(struct fwtty_peer *peer,
/* reconfigure tx_fifo optimally for this peer */
spin_lock_bh(&port->lock);
- port->max_payload = min3(peer->max_payload, peer->fifo_len,
- MAX_ASYNC_PAYLOAD);
+ port->max_payload = min(peer->max_payload, peer->fifo_len);
dma_fifo_change_tx_limit(&port->tx_fifo, port->max_payload);
spin_unlock_bh(&peer->port->lock);