]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCTP]: flip_to_{h,n}() are not needed anymore.
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Nov 2006 01:24:36 +0000 (17:24 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:27:07 +0000 (21:27 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h

index 02f1fd5de4be2f49d6e53c16ff71f8bfbf69f978..d44202b0487d0aff66c12b7b10a2b53350766d36 100644 (file)
@@ -74,28 +74,6 @@ union sctp_addr {
        struct sockaddr sa;
 };
 
-static inline void flip_to_n(union sctp_addr *to, const union sctp_addr *from)
-{
-       size_t len;
-       if (from->sa.sa_family == AF_INET6)
-               len = sizeof(struct sockaddr_in6);
-       else
-               len = sizeof(struct sockaddr);
-       memcpy(to, from, len);
-       to->v4.sin_port = htons(from->v4.sin_port);
-}
-
-static inline void flip_to_h(union sctp_addr *to, const union sctp_addr *from)
-{
-       size_t len;
-       if (from->sa.sa_family == AF_INET6)
-               len = sizeof(struct sockaddr_in6);
-       else
-               len = sizeof(struct sockaddr);
-       memcpy(to, from, len);
-       to->v4.sin_port = ntohs(from->v4.sin_port);
-}
-
 /* Forward declarations for data structures. */
 struct sctp_globals;
 struct sctp_endpoint;