]> git.baikalelectronics.ru Git - kernel.git/commit
net: x25: Use list_for_each_entry() to simplify code in x25_link.c
authorWang Hai <wanghai38@huawei.com>
Tue, 8 Jun 2021 08:05:05 +0000 (08:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 23:31:24 +0000 (16:31 -0700)
commitd6b19f48640fba956224fee3fbae45789322463b
tree62199ff8d2b78da352bbb3031a38d13bf1da515f
parent5094c7cfa0cd30f528cebdc4d08946bab715a843
net: x25: Use list_for_each_entry() to simplify code in x25_link.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_link.c