netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/10] net: Delete some redundant judgments
@ 2024-08-22  4:32 Li Zetao
  2024-08-22  4:32 ` [PATCH net-next 01/10] net: vxlan: delete redundant judgment statements Li Zetao
                   ` (11 more replies)
  0 siblings, 12 replies; 24+ messages in thread
From: Li Zetao @ 2024-08-22  4:32 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, dsahern, idosch, amcohen, petrm,
	gnault, b.galvani, alce, shaozhengchao, horms, lizetao1,
	j.granados, linux, judyhsiao, jiri
  Cc: netdev

This patchset aims to remove some unnecessary judgments and make the
code more concise. In some network modules, rtnl_set_sk_err is used to
record error information, but the err is repeatedly judged to be less
than 0 on the error path. Deleted these redundant judgments.

No functional change intended.

Li Zetao (10):
  net: vxlan: delete redundant judgment statements
  fib: rules: delete redundant judgment statements
  neighbour: delete redundant judgment statements
  rtnetlink: delete redundant judgment statements
  ipv4: delete redundant judgment statements
  ipmr: delete redundant judgment statements
  net: nexthop: delete redundant judgment statements
  ip6mr: delete redundant judgment statements
  net/ipv6: delete redundant judgment statements
  net: mpls: delete redundant judgment statements

 drivers/net/vxlan/vxlan_core.c | 3 +--
 net/core/fib_rules.c           | 3 +--
 net/core/neighbour.c           | 3 +--
 net/core/rtnetlink.c           | 3 +--
 net/ipv4/devinet.c             | 6 ++----
 net/ipv4/fib_semantics.c       | 3 +--
 net/ipv4/ipmr.c                | 3 +--
 net/ipv4/nexthop.c             | 6 ++----
 net/ipv6/ip6mr.c               | 3 +--
 net/ipv6/route.c               | 6 ++----
 net/mpls/af_mpls.c             | 6 ++----
 11 files changed, 15 insertions(+), 30 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-08-24  2:16 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22  4:32 [PATCH net-next 00/10] net: Delete some redundant judgments Li Zetao
2024-08-22  4:32 ` [PATCH net-next 01/10] net: vxlan: delete redundant judgment statements Li Zetao
2024-08-23 13:13   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 02/10] fib: rules: " Li Zetao
2024-08-23 13:13   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 03/10] neighbour: " Li Zetao
2024-08-23 13:14   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 04/10] rtnetlink: " Li Zetao
2024-08-23 13:14   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 05/10] ipv4: " Li Zetao
2024-08-23 13:14   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 06/10] ipmr: " Li Zetao
2024-08-23 13:15   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 07/10] net: nexthop: " Li Zetao
2024-08-23 13:15   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 08/10] ip6mr: " Li Zetao
2024-08-23 13:15   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 09/10] net/ipv6: " Li Zetao
2024-08-23 13:16   ` Petr Machata
2024-08-22  4:32 ` [PATCH net-next 10/10] net: mpls: " Li Zetao
2024-08-23 13:16   ` Petr Machata
2024-08-23 13:16 ` [PATCH net-next 00/10] net: Delete some redundant judgments Petr Machata
2024-08-24  2:16   ` Li Zetao
2024-08-23 13:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).