Bluetooth: Remove useless l2cap_seq_list_remove function
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 18 Jan 2014 19:32:59 +0000 (21:32 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:36 +0000 (09:51 +0200)
commit03a0c5d61c878e3196b80fa9dc9fbae0fb2eb8f8
tree2366c38c17f212b5be16a040acfcce9655a1b48d
parent61a939c68ee033d43be3aa436d95eb8afdd16142
Bluetooth: Remove useless l2cap_seq_list_remove function

The only user of l2cap_seq_list_remove() was l2cap_seq_list_pop() which
only removes the head, meaning only the "else if (seq_list->head ==
seq)" branch was ever being used. This patch moves the code from this
branch straight into l2cap_seq_list_pop() and removes the (now useless)
l2cap_seq_list_remove().

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