diff options
| author | Ingo Molnar <mingo@kernel.org> | 2021-08-26 09:14:05 +0200 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2021-08-26 09:14:05 +0200 |
| commit | 46466ae3a105d9620e1355e33125a413b8c6ce18 (patch) | |
| tree | 618b2d3574626956e0c7ea1d3bc3b35328e8cb40 /net/lapb | |
| parent | 3f2cbe3810a60111a33f5f6267bd5a237b826fc9 (diff) | |
| parent | ccf26483416a339c114409f6e7cd02abdeaf8052 (diff) | |
Merge branch 'perf/urgent' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/lapb')
| -rw-r--r-- | net/lapb/lapb_iface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c index 1078e14f1acf..0971ca48ba15 100644 --- a/net/lapb/lapb_iface.c +++ b/net/lapb/lapb_iface.c @@ -80,11 +80,9 @@ static void __lapb_insert_cb(struct lapb_cb *lapb) static struct lapb_cb *__lapb_devtostruct(struct net_device *dev) { - struct list_head *entry; struct lapb_cb *lapb, *use = NULL; - list_for_each(entry, &lapb_list) { - lapb = list_entry(entry, struct lapb_cb, node); + list_for_each_entry(lapb, &lapb_list, node) { if (lapb->dev == dev) { use = lapb; break; |
