From 2e7f48abcb5e3cddfc2f9428257ba3ec33bf7597 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 4 Oct 2023 08:02:58 +0200
Subject: [PATCH] Delete redundant assignment in umac code.

---
 ChangeLog | 4 ++++
 umac-l2.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 14ecb84b..267b510a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-10-04  Niels Möller  <nisse@lysator.liu.se>
+
+	* umac-l2.c (_nettle_umac_l2_final): Delete redundant assignment.
+
 2023-10-03  Niels Möller  <nisse@lysator.liu.se>
 
 	* Makefile.in (check-fat): Reduce tests to run to TS_FAT, to speed
diff --git a/umac-l2.c b/umac-l2.c
index 1e070ea8..c0bc1a6c 100644
--- a/umac-l2.c
+++ b/umac-l2.c
@@ -146,7 +146,7 @@ _nettle_umac_l2_final(const uint32_t *key, uint64_t *state, unsigned n,
 	  if (yh == UMAC_P128_HI && yl >= UMAC_P128_LO)
 	    {
 	      state[0] = 0;
-	      state[1] = yl -= UMAC_P128_LO;
+	      state[1] = yl - UMAC_P128_LO;
 	    }
 	}
     }
-- 
GitLab