diff options
author | Joe Perches <joe@perches.com> | 2011-06-29 21:18:29 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-30 17:44:08 -0400 |
commit | e175072f377047e28e399c5c661e39e69722f35b (patch) | |
tree | a82e4a67efe76fefcbe958c258fafbd96afaa471 /net/bluetooth/l2cap_core.c | |
parent | 942ecc9c4643db5ce071562e0a23f99464d6b461 (diff) |
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.c | 4 |
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) | |||
4107 | if (conn) | 4107 | if (conn) |
4108 | l2cap_conn_ready(conn); | 4108 | l2cap_conn_ready(conn); |
4109 | } else | 4109 | } else |
4110 | l2cap_conn_del(hcon, bt_err(status)); | 4110 | l2cap_conn_del(hcon, bt_to_errno(status)); |
4111 | 4111 | ||
4112 | return 0; | 4112 | return 0; |
4113 | } | 4113 | } |
@@ -4131,7 +4131,7 @@ static int l2cap_disconn_cfm(struct hci_conn *hcon, u8 reason) | |||
4131 | if (!(hcon->type == ACL_LINK || hcon->type == LE_LINK)) | 4131 | if (!(hcon->type == ACL_LINK || hcon->type == LE_LINK)) |
4132 | return -EINVAL; | 4132 | return -EINVAL; |
4133 | 4133 | ||
4134 | l2cap_conn_del(hcon, bt_err(reason)); | 4134 | l2cap_conn_del(hcon, bt_to_errno(reason)); |
4135 | 4135 | ||
4136 | return 0; | 4136 | return 0; |
4137 | } | 4137 | } |