diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-11-27 03:12:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-27 03:12:47 -0500 |
commit | c4106aa88a440430d387e022f2ad6dc1e0d52e98 (patch) | |
tree | 09064e6e767301ca28357ed5125e99123f5beaca /net/decnet/dn_table.c | |
parent | 5b9ab2ec04ec1e1e53939768805612ac191d7ba2 (diff) |
decnet: remove private wrappers of endian helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Reviewed-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_table.c')
-rw-r--r-- | net/decnet/dn_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_table.c b/net/decnet/dn_table.c index 3a2830ac89c2..69ad9280c693 100644 --- a/net/decnet/dn_table.c +++ b/net/decnet/dn_table.c | |||
@@ -85,7 +85,7 @@ static int dn_fib_hash_zombies; | |||
85 | 85 | ||
86 | static inline dn_fib_idx_t dn_hash(dn_fib_key_t key, struct dn_zone *dz) | 86 | static inline dn_fib_idx_t dn_hash(dn_fib_key_t key, struct dn_zone *dz) |
87 | { | 87 | { |
88 | u16 h = dn_ntohs(key.datum)>>(16 - dz->dz_order); | 88 | u16 h = le16_to_cpu(key.datum)>>(16 - dz->dz_order); |
89 | h ^= (h >> 10); | 89 | h ^= (h >> 10); |
90 | h ^= (h >> 6); | 90 | h ^= (h >> 6); |
91 | h &= DZ_HASHMASK(dz); | 91 | h &= DZ_HASHMASK(dz); |