diff mbox series

[BlueZ,v4,13/13] mesh: Remove unused byte swap for ScanBuild

Message ID 20230124202616.310544-14-brian.gix@gmail.com
State New
Headers show
Series Mesh v1.1 additions | expand

Commit Message

Brian Gix Jan. 24, 2023, 8:26 p.m. UTC
---
 mesh/crypto.c | 7 -------
 1 file changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/mesh/crypto.c b/mesh/crypto.c
index 38dfc5fb5..b712a2654 100644
--- a/mesh/crypto.c
+++ b/mesh/crypto.c
@@ -94,13 +94,6 @@  bool mesh_crypto_aes_ccm_encrypt(const uint8_t nonce[13], const uint8_t key[16],
 	result = l_aead_cipher_encrypt(cipher, msg, msg_len, aad, aad_len,
 					nonce, 13, out_msg, msg_len + mic_size);
 
-	if (result && out_mic) {
-		if (mic_size == 4)
-			*(uint32_t *)out_mic = l_get_be32(out_msg + msg_len);
-		else
-			*(uint64_t *)out_mic = l_get_be64(out_msg + msg_len);
-	}
-
 	l_aead_cipher_free(cipher);
 
 	return result;