ixl(4): replace 0 with NULL for pointers.

Found by devel/coccinelle.

Differential Revision:	https://reviews.freebsd.org/D5894
Reviewed by:	erj
This commit is contained in:
Pedro F. Giffuni 2016-04-09 17:37:36 +00:00
parent 4a9f41ec82
commit 648970d8eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297753
2 changed files with 3 additions and 3 deletions

View File

@ -3380,7 +3380,7 @@ ixl_add_sysctls_eth_stats(struct sysctl_ctx_list *ctx,
};
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_ctx_list *ctx,
};
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,

View File

@ -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,