staging/fwserial: Fold constant MAX_ASYNC_PAYLOAD
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 29 Jan 2013 01:57:47 +0000 (20:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:26:16 +0000 (23:26 -0500)
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>
drivers/staging/fwserial/fwserial.c

index 5f5474376fc404e8a2b03cf800a4353c62896930..815c0111958333b7da015567808237d4dbbbec52 100644 (file)
@@ -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);