aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-12-07 14:04:38 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-12-09 02:06:51 -0500
commitfe7007719742e4c0c1255e2f45bdd4ed97afc369 (patch)
tree9f7fadcf6075f786e4f96102afd575d6446de054 /net
parent9437d2edc39ed8f7e40536281ee53ec3fd5a14ca (diff)
Bluetooth: fix err_cast.cocci warnings
net/bluetooth/smp.c:2650:9-16: WARNING: ERR_CAST can be used with tfm_aes Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) Generated by: scripts/coccinelle/api/err_cast.cocci Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 3e174f94a46b..04489856ca68 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -2931,7 +2931,7 @@ static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid)
2931 tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, 0); 2931 tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, 0);
2932 if (IS_ERR(tfm_aes)) { 2932 if (IS_ERR(tfm_aes)) {
2933 BT_ERR("Unable to create crypto context"); 2933 BT_ERR("Unable to create crypto context");
2934 return ERR_PTR(PTR_ERR(tfm_aes)); 2934 return ERR_CAST(tfm_aes);
2935 } 2935 }
2936 2936
2937create_chan: 2937create_chan: