mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
list_for_each_rcu must die: networking
All uses of list_for_each_rcu() can be profitably replaced by the easier-to-use list_for_each_entry_rcu(). This patch makes this change for networking, in preparation for removing the list_for_each_rcu() API entirely. Acked-by: David S. Miller <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2fc9c4e18f
commit
696adfe84c
3 changed files with 7 additions and 15 deletions
|
|
@ -31,11 +31,9 @@ static struct llc_sap *snap_sap;
|
|||
*/
|
||||
static struct datalink_proto *find_snap_client(unsigned char *desc)
|
||||
{
|
||||
struct list_head *entry;
|
||||
struct datalink_proto *proto = NULL, *p;
|
||||
|
||||
list_for_each_rcu(entry, &snap_list) {
|
||||
p = list_entry(entry, struct datalink_proto, node);
|
||||
list_for_each_entry_rcu(p, &snap_list, node) {
|
||||
if (!memcmp(p->type, desc, 5)) {
|
||||
proto = p;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue