]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/siphash.c
Update bcachefs sources to 99175e5712 bcachefs: Fix bch2_check_discard_freespace_key()
[bcachefs-tools-debian] / libbcachefs / siphash.c
index d689a7b0789d76300799da8d435f51a43d1c7007..dc1a27cc31cd4de56cdc2e44026e4be7b789c34f 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-3-Clause
 /*     $OpenBSD: siphash.c,v 1.3 2015/02/20 11:51:03 tedu Exp $ */
 
 /*-
@@ -43,7 +44,6 @@
  * https://131002.net/siphash/
  */
 
-#include <linux/compiler.h>
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
 #include <linux/bitops.h>
@@ -160,7 +160,7 @@ u64 SipHash_End(SIPHASH_CTX *ctx, int rc, int rf)
 
        r = (ctx->v[0] ^ ctx->v[1]) ^ (ctx->v[2] ^ ctx->v[3]);
        memset(ctx, 0, sizeof(*ctx));
-       return (r);
+       return r;
 }
 
 u64 SipHash(const SIPHASH_KEY *key, int rc, int rf, const void *src, size_t len)