rx: rxi_SendPacketList remove duplicate conditional

Presumably these checks were different at some point in the past.

Change-Id: I0fb8737404a3c4fa786ab7965b60d35328d0bf32
Reviewed-on: http://gerrit.openafs.org/11632
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
This commit is contained in:
Benjamin Kaduk 2014-12-14 15:12:04 -05:00 committed by Daria Brashear
parent a1a6331e2e
commit 7644d02f25

View File

@ -2347,19 +2347,17 @@ rxi_SendPacketList(struct rx_call *call, struct rx_connection *conn,
conn->serial += len; conn->serial += len;
for (i = 0; i < len; i++) { for (i = 0; i < len; i++) {
p = list[i]; p = list[i];
/* a ping *or* a sequenced packet can count */
if (p->length > conn->peer->maxPacketSize) { if (p->length > conn->peer->maxPacketSize) {
/* a ping *or* a sequenced packet can count */ if (((p->header.type == RX_PACKET_TYPE_ACK) &&
if ((p->length > conn->peer->maxPacketSize)) { (p->header.flags & RX_REQUEST_ACK)) &&
if (((p->header.type == RX_PACKET_TYPE_ACK) && ((i == 0) || (p->length >= conn->lastPingSize))) {
(p->header.flags & RX_REQUEST_ACK)) && conn->lastPingSize = p->length;
((i == 0) || (p->length >= conn->lastPingSize))) { conn->lastPingSizeSer = serial + i;
conn->lastPingSize = p->length; } else if ((p->header.seq != 0) &&
conn->lastPingSizeSer = serial + i; ((i == 0) || (p->length >= conn->lastPacketSize))) {
} else if ((p->header.seq != 0) && conn->lastPacketSize = p->length;
((i == 0) || (p->length >= conn->lastPacketSize))) { conn->lastPacketSizeSeq = p->header.seq;
conn->lastPacketSize = p->length;
conn->lastPacketSizeSeq = p->header.seq;
}
} }
} }
} }