aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/associola.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r--net/sctp/associola.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 13931a91f667..d29f792e0529 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -1525,7 +1525,7 @@ struct sctp_chunk *sctp_assoc_lookup_asconf_ack(
1525 const struct sctp_association *asoc, 1525 const struct sctp_association *asoc,
1526 __be32 serial) 1526 __be32 serial)
1527{ 1527{
1528 struct sctp_chunk *ack = NULL; 1528 struct sctp_chunk *ack;
1529 1529
1530 /* Walk through the list of cached ASCONF-ACKs and find the 1530 /* Walk through the list of cached ASCONF-ACKs and find the
1531 * ack chunk whose serial number matches that of the request. 1531 * ack chunk whose serial number matches that of the request.
@@ -1533,9 +1533,9 @@ struct sctp_chunk *sctp_assoc_lookup_asconf_ack(
1533 list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) { 1533 list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
1534 if (ack->subh.addip_hdr->serial == serial) { 1534 if (ack->subh.addip_hdr->serial == serial) {
1535 sctp_chunk_hold(ack); 1535 sctp_chunk_hold(ack);
1536 break; 1536 return ack;
1537 } 1537 }
1538 } 1538 }
1539 1539
1540 return ack; 1540 return NULL;
1541} 1541}