summaryrefslogtreecommitdiff
path: root/mesh
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@gmail.com>2023-01-24 12:22:16 -0800
committerBrian Gix <brian.gix@gmail.com>2023-01-30 16:14:41 -0800
commit5045e9845b9fbe105ce833267184e7876721fd3b (patch)
tree83b4f82e931e602fe2eef783ba8972f9a21485cb /mesh
parent4bdd7090f0dfd0692dcc410340ff831d4f89d27f (diff)
downloadbluez-5045e9845b9fbe105ce833267184e7876721fd3b.tar.gz
mesh: Remove unused byte swap for ScanBuild
Diffstat (limited to 'mesh')
-rw-r--r--mesh/crypto.c7
1 files changed, 0 insertions, 7 deletions
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;