projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99a6768
)
Bluetooth: Use list_del when freeing the list entry
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 4 Jul 2014 13:17:23 +0000
(16:17 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 4 Jul 2014 13:54:29 +0000
(15:54 +0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index f1672b15c0f3837d2674f6cc00bf8ced0b6efd9e..90eabcae3ed2544f40d84904d16b7c2a1bd2d9c5 100644
(file)
--- a/
net/bluetooth/mgmt.c
+++ b/
net/bluetooth/mgmt.c
@@
-5225,7
+5225,7
@@
static int remove_device(struct sock *sk, struct hci_dev *hdev,
goto unlock;
}
- list_del
_init
(¶ms->action);
+ list_del(¶ms->action);
list_del(¶ms->list);
kfree(params);
hci_update_background_scan(hdev);