Эх сурвалжийг харах

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>
Johan Hedberg 12 жил өмнө
parent
commit
33a2145e61

+ 0 - 2
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)
 static __le16 l2cap_err_to_reason(int err)
 {
 {
 	switch (err) {
 	switch (err) {
-	case -EMSGSIZE:
-		return __constant_cpu_to_le16(L2CAP_REJ_MTU_EXCEEDED);
 	case -EINVAL:
 	case -EINVAL:
 	case -EPROTO:
 	case -EPROTO:
 	default:
 	default: