]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3fa0bac958ea65ca32a0b46e0c3d3da1e71e4e4
treef0a123388c413e483e2c43198fe39db99a3a3e60
parent2107ddf275588e4ee5d60e458ddb75ae89ab12cc
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