Re: [PATCH 03/14 v2] ipv4, ipv6: use list_for_each_entry*

2015-12-19 Thread Julia Lawall
On Sat, 19 Dec 2015, Geliang Tang wrote: > Use list_for_each_entry*() instead of list_for_each*() to simplify > the code. Is the code really simpler? At least in the case of net/ipv6/addrconf.c, I have the impression that there can be an access from a pointer that is not really pointing to the

[PATCH 03/14 v2] ipv4, ipv6: use list_for_each_entry*

2015-12-19 Thread Geliang Tang
Use list_for_each_entry*() instead of list_for_each*() to simplify the code. Signed-off-by: Geliang Tang --- Changes in v2: - bugfix for inet6_register_protosw in v1. --- net/ipv4/af_inet.c| 11 --- net/ipv4/tcp_output.c | 6 ++ net/ipv6/addrconf.c | 8 +++- net/ipv6/af_