sctp: fix test for end of loop
authorJoe Perches <joe@perches.com>
Wed, 8 Sep 2010 11:04:21 +0000 (11:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Sep 2010 22:00:29 +0000 (15:00 -0700)
commit123031c0eeda6144b4002dc3285375aa9ae9dc11
tree2f7b13ffb639f3737b52ce47bf7bf258ff496f3a
parente199e6136ce6b151e6638ae93dca60748424d900
sctp: fix test for end of loop

Add a list_has_sctp_addr function to simplify loop

Based on a patches by Dan Carpenter and David Miller

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c