]> git.openfabrics.org - ~emulex/infiniband.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)
commitd1dbf12e3be0befcd3fd1f978202c5f72d2cc67b
tree93321567f8e229a45b495086871e54107f4f48a8
parent99a6768e0e55d19a47934ccd653ff0f9b3236401
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