summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-25 15:08:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-26 12:35:06 +0200
commit319b7f4a1344d826ad4e384119057ebf7e804458 (patch)
treea650e485e091e99ab39726f2be0a5b2cd0aa96e8
parent490f81be828490d691339cdf6e4e4472d6698932 (diff)
compat: clean up cruft
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/compat/siphash/siphash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compat/siphash/siphash.c b/src/compat/siphash/siphash.c
index 1ebfd5e..edbc893 100644
--- a/src/compat/siphash/siphash.c
+++ b/src/compat/siphash/siphash.c
@@ -15,11 +15,9 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
#ifdef __LITTLE_ENDIAN
- #define HASH_LEN_DECLARE u32 hash; u32 len;
- #define bytemask_from_count(cnt) (~(~0ul << (cnt)*8))
+#define bytemask_from_count(cnt) (~(~0ul << (cnt)*8))
#else
- #define HASH_LEN_DECLARE u32 len; u32 hash;
- #define bytemask_from_count(cnt) (~(~0ul >> (cnt)*8))
+#define bytemask_from_count(cnt) (~(~0ul >> (cnt)*8))
#endif
#endif