]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use list_del when freeing the list entry
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 13:17:23 +0000 (16:17 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 13:54:29 +0000 (15:54 +0200)
commitf86201813f8795a0b218c4175ed878ee3ebeee1e
tree93321567f8e229a45b495086871e54107f4f48a8
parent7b862053ca540a9c2f95ea0cf0676524a0b6c060
Bluetooth: Use list_del when freeing the list entry

It's wasteful to use list_del_init (which re-initializes the list_head)
if we're just about to free the element and never use it again.

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