OSDN Git Service

net: x25: Use list_for_each_entry() to simplify code in x25_link.c
authorWang Hai <wanghai38@huawei.com>
Tue, 8 Jun 2021 08:05:05 +0000 (08:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 23:31:24 +0000 (16:31 -0700)
commit3835a6614ae7ee4840459bf47528a97b1dfc5439
tree62199ff8d2b78da352bbb3031a38d13bf1da515f
parent36861d1f0408a431ede4184d90f7bf1598d639ca
net: x25: Use list_for_each_entry() to simplify code in x25_link.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/x25/x25_link.c