]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Bluetooth: Remove dead code from SMP encryption function
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 2 Dec 2013 08:49:04 +0000 (10:49 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 4 Dec 2013 13:09:05 +0000 (11:09 -0200)
commit201a5929c8c788f9ef53b010065c9ce70c9c06f0
tree94909a7924645c50f37e6ceba9ea1234f93b7d90
parente84a6b139bdd3af2914f194ff840b1a36fa55598
Bluetooth: Remove dead code from SMP encryption function

The AES cipher is used in ECB mode by SMP and therefore doesn't use an
IV (crypto_blkcipher_ivsize returns 0) so the code trying to set the IV
was never getting called. Simply remove this code to avoid anyone from
thinking it actually makes some difference.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c