summaryrefslogtreecommitdiffstats
path: root/net/sctp/tsnmap.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:26:34 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:27:13 -0800
commit9f81bcd9429e9bb4006eb9b7df276706c5df926d (patch)
tree1f2f5ddc1c22d2b771121e7bf64afc5c837b1e0d /net/sctp/tsnmap.c
parent962c837275e8a8c1df41f1882e971636093cdee4 (diff)
downloadop-kernel-dev-9f81bcd9429e9bb4006eb9b7df276706c5df926d.zip
op-kernel-dev-9f81bcd9429e9bb4006eb9b7df276706c5df926d.tar.gz
[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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c
index ac4fae1..42d9498 100644
--- a/net/sctp/tsnmap.c
+++ b/net/sctp/tsnmap.c
@@ -401,13 +401,14 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map)
/* Refresh the gap ack information. */
if (sctp_tsnmap_has_gap(map)) {
+ __u16 start, end;
sctp_tsnmap_iter_init(map, &iter);
while (sctp_tsnmap_next_gap_ack(map, &iter,
- &map->gabs[gabs].start,
- &map->gabs[gabs].end)) {
+ &start,
+ &end)) {
- map->gabs[gabs].start = htons(map->gabs[gabs].start);
- map->gabs[gabs].end = htons(map->gabs[gabs].end);
+ map->gabs[gabs].start = htons(start);
+ map->gabs[gabs].end = htons(end);
gabs++;
if (gabs >= SCTP_MAX_GABS)
break;
OpenPOWER on IntegriCloud