Bluetooth: Remove unused command reject mapping for EMSGSIZE
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Oct 2013 08:20:48 +0000 (11:20 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Oct 2013 08:22:55 +0000 (01:22 -0700)
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>
net/bluetooth/l2cap_core.c

index 157833051a0698098a4cfa4dad296ae0487c67d1..644af94ebb0a6150d56f0519189e0df3a2d8e8f1 100644 (file)
@@ -5317,8 +5317,6 @@ static inline int l2cap_le_sig_cmd(struct l2cap_conn *conn,
 static __le16 l2cap_err_to_reason(int err)
 {
        switch (err) {
-       case -EMSGSIZE:
-               return __constant_cpu_to_le16(L2CAP_REJ_MTU_EXCEEDED);
        case -EINVAL:
        case -EPROTO:
        default: