diff options
author | Petr Mladek <[email protected]> | 2021-08-30 14:56:06 +0200 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2021-08-30 14:56:06 +0200 |
commit | 71af75b6929458d85f63c0649dc26d6f4c19729e (patch) | |
tree | c05c57903424d8270f6b6f3ec3493791fdba4e5c /net/lapb/lapb_iface.c | |
parent | fe8e3ee0d588566c1f44f28a555042ef50eba491 (diff) | |
parent | bc17bed5fd73ef1a9aed39f3b0ea26936dad60b8 (diff) |
Merge branch 'for-5.15-printk-index' into for-linus
Diffstat (limited to 'net/lapb/lapb_iface.c')
-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; |