mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297753
@ -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 New Issue
Block a user