diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-05-02 23:26:16 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-02 23:26:16 (GMT) |
commit | d3e2ce3bcdbf4319dea308c79b5f72a8ecc8015c (patch) | |
tree | aa83f30213ecb17a653fe16c55e3bc5449aa2d7c /net/core | |
parent | 83985319393973f280ca2a797047780a7955cf19 (diff) | |
download | linux-d3e2ce3bcdbf4319dea308c79b5f72a8ecc8015c.tar.xz |
net: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index f5f3cf60..4f83697 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -213,7 +213,7 @@ unsigned int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int load_w: ptr = load_pointer(skb, k, 4, &tmp); if (ptr != NULL) { - A = ntohl(get_unaligned((__be32 *)ptr)); + A = get_unaligned_be32(ptr); continue; } break; @@ -222,7 +222,7 @@ load_w: load_h: ptr = load_pointer(skb, k, 2, &tmp); if (ptr != NULL) { - A = ntohs(get_unaligned((__be16 *)ptr)); + A = get_unaligned_be16(ptr); continue; } break; |