]> 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)
commitfc35cde4f287062f6d0593f4edacdfacc16bc82d
treef0a123388c413e483e2c43198fe39db99a3a3e60
parent02d7db455a6fde0dc4151a685660fbf8c27d9385
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