net: lapb: Use list_for_each_entry() to simplify code in lapb_iface.c
authorWang Hai <wanghai38@huawei.com>
Tue, 8 Jun 2021 08:13:01 +0000 (08:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 23:31:25 +0000 (16:31 -0700)
commite83332842a46c091992ad06145b5c1b65a08ab05
tree8231256d4853fe33eea166a7a43df6005c5956a2
parent3835a6614ae7ee4840459bf47528a97b1dfc5439
net: lapb: Use list_for_each_entry() to simplify code in lapb_iface.c

Convert list_for_each() to list_for_each_entry() where
applicable. This simplifies the code.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/lapb/lapb_iface.c