]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3cc982b07e0825488a3dc30dcfd13a2ffc8667c
treeaef759ab77ecc12eec17bf9786fa921b8fa07c2b
parent1adf6bcfca4a097f8478010b943c40f9d6dd4d16
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