net: x25: Use list_for_each_entry() to simplify code in x25_forward.c
authorWang Hai <wanghai38@huawei.com>
Tue, 8 Jun 2021 13:30:07 +0000 (13:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 23:31:25 +0000 (16:31 -0700)
commit96bffe70231c871d1b39ecc44288c96bed66422b
treef0a123388c413e483e2c43198fe39db99a3a3e60
parent78595dfcb29b7426410b93c1400dca507e6e899e
net: x25: Use list_for_each_entry() to simplify code in x25_forward.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_forward.c