aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-10-16 04:20:48 -0400
committerMarcel Holtmann <marcel@holtmann.org>2013-10-16 04:22:55 -0400
commit33a2145e6179afcbc1d71fee25848ad92a244f6c (patch)
treeafb6adab9e94323bb4a2bd2d8bf365ea9300177b /net/bluetooth
parent662d652dd60edbb45acab772baedaf39a2f22ffc (diff)
Bluetooth: Remove unused command reject mapping for EMSGSIZE
There is no command handler that would return an EMSGSIZE error, so just remove this mapping from the l2cap_err_to_reason function. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 157833051a06..644af94ebb0a 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -5317,8 +5317,6 @@ static inline int l2cap_le_sig_cmd(struct l2cap_conn *conn,
5317static __le16 l2cap_err_to_reason(int err) 5317static __le16 l2cap_err_to_reason(int err)
5318{ 5318{
5319 switch (err) { 5319 switch (err) {
5320 case -EMSGSIZE:
5321 return __constant_cpu_to_le16(L2CAP_REJ_MTU_EXCEEDED);
5322 case -EINVAL: 5320 case -EINVAL:
5323 case -EPROTO: 5321 case -EPROTO:
5324 default: 5322 default: