summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/crypto/sha1.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/payloads/libpayload/crypto/sha1.c b/payloads/libpayload/crypto/sha1.c
index 3c97bf1895..c973e183db 100644
--- a/payloads/libpayload/crypto/sha1.c
+++ b/payloads/libpayload/crypto/sha1.c
@@ -30,18 +30,12 @@ typedef unsigned int u_int;
/* Moved from libpayload.h */
-#ifdef CONFIG_ARCH_X86
+#ifdef CONFIG_LITTLE_ENDIAN
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
-#if 0
-#include <sys/param.h>
-#include <string.h>
-#include <sha1.h>
-#endif
-
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
/*