summaryrefslogtreecommitdiffstats
path: root/net/sctp/bind_addr.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:07:48 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:26:39 -0800
commitc9a08505ec0a0260fc94a823c014cc3970f72d25 (patch)
tree6dd02280319ebc659a9a80c05d793d127d49338b /net/sctp/bind_addr.c
parent63de08f45bb73a445edb482850f4cdccd84def48 (diff)
downloadop-kernel-dev-c9a08505ec0a0260fc94a823c014cc3970f72d25.zip
op-kernel-dev-c9a08505ec0a0260fc94a823c014cc3970f72d25.tar.gz
[SCTP]: Switch sctp_del_bind_addr() to net-endian.
Callers adjusted. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/bind_addr.c')
-rw-r--r--net/sctp/bind_addr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c
index 442d891..eafdd11 100644
--- a/net/sctp/bind_addr.c
+++ b/net/sctp/bind_addr.c
@@ -181,13 +181,10 @@ int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr)
{
struct list_head *pos, *temp;
struct sctp_sockaddr_entry *addr;
- union sctp_addr tmp;
-
- flip_to_n(&tmp, del_addr);
list_for_each_safe(pos, temp, &bp->address_list) {
addr = list_entry(pos, struct sctp_sockaddr_entry, list);
- if (sctp_cmp_addr_exact(&addr->a, &tmp)) {
+ if (sctp_cmp_addr_exact(&addr->a, del_addr)) {
/* Found the exact match. */
list_del(pos);
kfree(addr);
OpenPOWER on IntegriCloud