Bluetooth: Remove useless l2cap_err_to_reason function
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Oct 2013 08:20:49 +0000 (11:20 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Oct 2013 08:22:55 +0000 (01:22 -0700)
commita521149a0df24cc250aa1173a9964dd8a728d772
treec177c126fbb4a66a7c16b02fe2e67af034d766b4
parent33a2145e6179afcbc1d71fee25848ad92a244f6c
Bluetooth: Remove useless l2cap_err_to_reason function

Now that the only reason code this function can return is
L2CAP_REJ_NOT_UNDERSTOOD we can just do the necessary assignment without
needing a separate function at all.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c