diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:26:34 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:27:13 -0500 |
commit | 9f81bcd9429e9bb4006eb9b7df276706c5df926d (patch) | |
tree | 1f2f5ddc1c22d2b771121e7bf64afc5c837b1e0d /net/sctp/tsnmap.c | |
parent | 962c837275e8a8c1df41f1882e971636093cdee4 (diff) |
[SCTP]: More trivial sctp annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/tsnmap.c')
-rw-r--r-- | net/sctp/tsnmap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c index ac4fae161bc7..42d9498c64fa 100644 --- a/net/sctp/tsnmap.c +++ b/net/sctp/tsnmap.c | |||
@@ -401,13 +401,14 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map) | |||
401 | 401 | ||
402 | /* Refresh the gap ack information. */ | 402 | /* Refresh the gap ack information. */ |
403 | if (sctp_tsnmap_has_gap(map)) { | 403 | if (sctp_tsnmap_has_gap(map)) { |
404 | __u16 start, end; | ||
404 | sctp_tsnmap_iter_init(map, &iter); | 405 | sctp_tsnmap_iter_init(map, &iter); |
405 | while (sctp_tsnmap_next_gap_ack(map, &iter, | 406 | while (sctp_tsnmap_next_gap_ack(map, &iter, |
406 | &map->gabs[gabs].start, | 407 | &start, |
407 | &map->gabs[gabs].end)) { | 408 | &end)) { |
408 | 409 | ||
409 | map->gabs[gabs].start = htons(map->gabs[gabs].start); | 410 | map->gabs[gabs].start = htons(start); |
410 | map->gabs[gabs].end = htons(map->gabs[gabs].end); | 411 | map->gabs[gabs].end = htons(end); |
411 | gabs++; | 412 | gabs++; |
412 | if (gabs >= SCTP_MAX_GABS) | 413 | if (gabs >= SCTP_MAX_GABS) |
413 | break; | 414 | break; |