diff options
author | Daniel Kestrel <kestrel1974@t-online.de> | 2021-06-15 17:33:24 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-01-06 00:23:02 +0100 |
commit | 6ade9d1ddac660e7f06116359c0812adde86bf9e (patch) | |
tree | 4c7af1344afbb7137f3a6a5efd47cfebdd15dd90 /package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c | |
parent | 0470b05b568c9d9b7188e83c1303d0acac64921d (diff) | |
download | upstream-6ade9d1ddac660e7f06116359c0812adde86bf9e.tar.gz upstream-6ade9d1ddac660e7f06116359c0812adde86bf9e.tar.bz2 upstream-6ade9d1ddac660e7f06116359c0812adde86bf9e.zip |
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 <kestrel1974@t-online.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c')
-rw-r--r-- | package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c index 376ff64d05..51782e0b6a 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c @@ -119,9 +119,9 @@ static void md5_transform(struct md5_ctx *mctx, u32 *hash, u32 const *in) *((u32 *) hash + 2) = hashs->D3R; *((u32 *) hash + 3) = hashs->D4R; - mctx->started = 1; - CRTCL_SECT_HASH_END; + + mctx->started = 1; } /*! \fn static inline void md5_transform_helper(struct md5_ctx *ctx) @@ -274,4 +274,3 @@ void ifxdeu_fini_md5 (void) crypto_unregister_shash(&ifxdeu_md5_alg); } - |