From 6ade9d1ddac660e7f06116359c0812adde86bf9e Mon Sep 17 00:00:00 2001 From: Daniel Kestrel Date: Tue, 15 Jun 2021 17:33:24 +0200 Subject: ltq-deu: remove compiler warning and shorten locked sections Removing hash pointer in _hmac_setkey since its not needed and causes a compiler warning. Make the spinlock control sections shorter and move initializations out of the control sections to free the spinlock faster for allowing other threads to use the hash engine. Minor improvements for indentation and removal of blanks and blank lines in some areas. Signed-off-by: Daniel Kestrel --- package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c') diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c index 6afd783b6b..51f988fe43 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_arc4.c @@ -89,7 +89,6 @@ struct arc4_ctx { extern int disable_deudma; extern int disable_multiblock; - /*! \fn static void _deu_arc4 (void *ctx_arg, u8 *out_arg, const u8 *in_arg, u8 *iv_arg, u32 nbytes, int encdec, int mode) \ingroup IFX_ARC4_FUNCTIONS \brief main interface to ARC4 hardware @@ -386,5 +385,3 @@ void ifxdeu_fini_arc4(void) } - - -- cgit v1.2.3