Skip to content

ipv6: coding style - comparisons with NULL

Ian Morris lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ipv6: coding style: comparison for equality with NULLnet/ipv6/addrconf.c net/ipv6/af_inet6.c net/ipv6/ah6.c +22 more+173 -1740 replies
2/2ipv6: coding style: comparison for inequality with NULLnet/ipv6/addrconf_core.c net/ipv6/af_inet6.c net/ipv6/ip6_fib.c +14 more+43 -430 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid S. MillerDavid Miller
SeriesA-b A-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] ipv6: coding style - comparisons with NULL

The following patches address some coding style issues only. No functional changes and no changes detected by objdiff.

The IPV6 code uses multiple different styles when comparing with NULL (I.e. x == NULL and !x as well as x != NULL and x). Generally the latter form is preferred according to checkpatch and so this changes aligns the code to this style.

Ian Morris (2):
ipv6: coding style: comparison for equality with NULL
ipv6: coding style: comparison for inequality with NULL

 net/ipv6/addrconf.c        | 88 +++++++++++++++++++++++-----------------------
 net/ipv6/addrconf_core.c   |  2 +-
 net/ipv6/af_inet6.c        | 14 ++++----
 net/ipv6/ah6.c             |  2 +-
 net/ipv6/anycast.c         | 10 +++---
 net/ipv6/datagram.c        |  6 ++--
 net/ipv6/esp6.c            |  2 +-
 net/ipv6/exthdrs_core.c    | 10 +++---
 net/ipv6/icmp.c            | 13 ++++---
 net/ipv6/ip6_fib.c         |  4 +--
 net/ipv6/ip6_flowlabel.c   | 22 ++++++------
 net/ipv6/ip6_gre.c         | 14 ++++----
 net/ipv6/ip6_input.c       |  2 +-
 net/ipv6/ip6_offload.c     |  2 +-
 net/ipv6/ip6_output.c      | 24 ++++++-------
 net/ipv6/ip6_tunnel.c      | 12 +++----
 net/ipv6/ip6_vti.c         | 12 +++----
 net/ipv6/ip6mr.c           | 50 +++++++++++++-------------
 net/ipv6/ipv6_sockglue.c   | 10 +++---
 net/ipv6/mcast.c           | 30 ++++++++--------
 net/ipv6/ndisc.c           | 20 +++++------
 net/ipv6/raw.c             | 14 ++++----
 net/ipv6/reassembly.c      |  8 ++---
 net/ipv6/route.c           |  2 +-
 net/ipv6/sit.c             | 22 ++++++------
 net/ipv6/sysctl_net_ipv6.c |  2 +-
 net/ipv6/tcp_ipv6.c        | 20 +++++------
 net/ipv6/udp.c             | 14 ++++----
 net/ipv6/xfrm6_policy.c    |  2 +-
 29 files changed, 216 insertions(+), 217 deletions(-)
Signature · 1 line
1.9.1