net: x25: Use list_for_each_entry() to simplify code in x25_route.c
authorWang Hai <wanghai38@huawei.com>
Thu, 10 Jun 2021 12:48:26 +0000 (20:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 21:08:09 +0000 (14:08 -0700)
commitbc831facf8a11e4e615dc67ae790325710bc1979
treeaef759ab77ecc12eec17bf9786fa921b8fa07c2b
parent9e2b7b0450cfc6a99ceaa37843cb5d0179e1c2ae
net: x25: Use list_for_each_entry() to simplify code in x25_route.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_route.c