]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0312b02c1cb3eabe439b8fb39e3dfc3b91766a5a
tree2366c38c17f212b5be16a040acfcce9655a1b48d
parentbc9fb42d4a678b2bf7f217d7e455cfd810e070d9
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