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;
for (i = 0; i < len; i++) {
p = list[i];
/* a ping *or* a sequenced packet can count */
if (p->length > conn->peer->maxPacketSize) {
/* a ping *or* a sequenced packet can count */
if ((p->length > conn->peer->maxPacketSize)) {
if (((p->header.type == RX_PACKET_TYPE_ACK) &&
(p->header.flags & RX_REQUEST_ACK)) &&
((i == 0) || (p->length >= conn->lastPingSize))) {
conn->lastPingSize = p->length;
conn->lastPingSizeSer = serial + i;
} else if ((p->header.seq != 0) &&
((i == 0) || (p->length >= conn->lastPacketSize))) {
conn->lastPacketSize = p->length;
conn->lastPacketSizeSeq = p->header.seq;
}
if (((p->header.type == RX_PACKET_TYPE_ACK) &&
(p->header.flags & RX_REQUEST_ACK)) &&
((i == 0) || (p->length >= conn->lastPingSize))) {
conn->lastPingSize = p->length;
conn->lastPingSizeSer = serial + i;
} else if ((p->header.seq != 0) &&
((i == 0) || (p->length >= conn->lastPacketSize))) {
conn->lastPacketSize = p->length;
conn->lastPacketSizeSeq = p->header.seq;
}
}
}