Author: pfg
Date: Sat Apr  9 17:37:36 2016
New Revision: 297753
URL: https://svnweb.freebsd.org/changeset/base/297753

Log:
  ixl(4): replace 0 with NULL for pointers.
  
  Found by devel/coccinelle.
  
  Differential Revision:        https://reviews.freebsd.org/D5894
  Reviewed by:  erj

Modified:
  head/sys/dev/ixl/if_ixl.c
  head/sys/dev/ixl/if_ixlv.c

Modified: head/sys/dev/ixl/if_ixl.c
==============================================================================
--- head/sys/dev/ixl/if_ixl.c   Sat Apr  9 16:06:13 2016        (r297752)
+++ head/sys/dev/ixl/if_ixl.c   Sat Apr  9 17:37:36 2016        (r297753)
@@ -3380,7 +3380,7 @@ ixl_add_sysctls_eth_stats(struct sysctl_
        };
 
        struct ixl_sysctl_info *entry = ctls;
-       while (entry->stat != 0)
+       while (entry->stat != NULL)
        {
                SYSCTL_ADD_UQUAD(ctx, child, OID_AUTO, entry->name,
                                CTLFLAG_RD, entry->stat,
@@ -3439,7 +3439,7 @@ ixl_add_sysctls_mac_stats(struct sysctl_
        };
 
        struct ixl_sysctl_info *entry = ctls;
-       while (entry->stat != 0)
+       while (entry->stat != NULL)
        {
                SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, entry->name,
                                CTLFLAG_RD, entry->stat,

Modified: head/sys/dev/ixl/if_ixlv.c
==============================================================================
--- head/sys/dev/ixl/if_ixlv.c  Sat Apr  9 16:06:13 2016        (r297752)
+++ head/sys/dev/ixl/if_ixlv.c  Sat Apr  9 17:37:36 2016        (r297753)
@@ -2832,7 +2832,7 @@ ixlv_add_sysctls(struct ixlv_sc *sc)
                {0,0,0}
        };
        struct ixl_sysctl_info *entry = ctls;
-       while (entry->stat != 0)
+       while (entry->stat != NULL)
        {
                SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, entry->name,
                                CTLFLAG_RD, entry->stat,
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to