From: Chas Williams (CONTRACTOR) Date: Wed, 20 Oct 2010 13:06:35 +0000 (-0400) Subject: rx: remove spurious compare for maxDgramPackets X-Git-Tag: openafs-devel-1_7_1~1394 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=da400a24a7c9d5ac1595f10e0c76df5a461aa5dc;hp=dcb40c9fb8629e028e2dfa6333423b0ce0c00abc rx: remove spurious compare for maxDgramPackets maxDgramPackets is initially assigned this value after correcting for the wire endian. This compare is harmless on little endian since the network endian value will typically be huge and redundant on big endian machines. Change-Id: I4a070b2964805f45c0593c80a2604c4e4cd26ff7 Reviewed-on: http://gerrit.openafs.org/3015 Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/rx/rx.c b/src/rx/rx.c index 5d2e484..d2e343c 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -4297,7 +4297,6 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np, maxDgramPackets = MIN(maxDgramPackets, rxi_nDgramPackets); maxDgramPackets = MIN(maxDgramPackets, (int)(peer->ifDgramPackets)); - maxDgramPackets = MIN(maxDgramPackets, tSize); if (maxDgramPackets > 1) { peer->maxDgramPackets = maxDgramPackets; call->MTU = RX_JUMBOBUFFERSIZE + RX_HEADER_SIZE;