aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-06-29 18:18:29 -0700
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-30 18:44:08 -0300
commite175072f377047e28e399c5c661e39e69722f35b (patch)
treea82e4a67efe76fefcbe958c258fafbd96afaa471 /net/bluetooth/l2cap_core.c
parentBluetooth: ERTM timeouts need to be converted to jiffies (diff)
downloadlinux-dev-e175072f377047e28e399c5c661e39e69722f35b.tar.xz
linux-dev-e175072f377047e28e399c5c661e39e69722f35b.zip
Bluetooth: Rename function bt_err to bt_to_errno
Make it easier to use more normal logging styles later. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index fb5238133005..becf2ad72208 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -4107,7 +4107,7 @@ static int l2cap_connect_cfm(struct hci_conn *hcon, u8 status)
if (conn)
l2cap_conn_ready(conn);
} else
- l2cap_conn_del(hcon, bt_err(status));
+ l2cap_conn_del(hcon, bt_to_errno(status));
return 0;
}
@@ -4131,7 +4131,7 @@ static int l2cap_disconn_cfm(struct hci_conn *hcon, u8 reason)
if (!(hcon->type == ACL_LINK || hcon->type == LE_LINK))
return -EINVAL;
- l2cap_conn_del(hcon, bt_err(reason));
+ l2cap_conn_del(hcon, bt_to_errno(reason));
return 0;
}