mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
4a9f41ec82
commit
648970d8eb
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue