From: Johan Hedberg Date: Wed, 16 Oct 2013 08:20:48 +0000 (+0300) Subject: Bluetooth: Remove unused command reject mapping for EMSGSIZE X-Git-Tag: v4.0~2533^2~3^2^2~307^2~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33a2145e6179afcbc1d71fee25848ad92a244f6c;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 1578330..644af94 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, 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: