mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Prefer NULL to 0 for pointer assignments.
MFC after: 1 month
This commit is contained in:
parent
905220d58e
commit
fc2c3e84bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192755
@ -677,7 +677,7 @@ spx_output(struct spxpcb *cb, struct mbuf *m0)
|
||||
/*
|
||||
* Find requested packet.
|
||||
*/
|
||||
si = 0;
|
||||
si = NULL;
|
||||
if (len > 0) {
|
||||
cb->s_want = cb->s_snxt;
|
||||
for (m = sb->sb_mb; m != NULL; m = m->m_nextpkt) {
|
||||
@ -690,7 +690,7 @@ spx_output(struct spxpcb *cb, struct mbuf *m0)
|
||||
if (si->si_seq == cb->s_snxt)
|
||||
cb->s_snxt++;
|
||||
else
|
||||
spxstat.spxs_sndvoid++, si = 0;
|
||||
spxstat.spxs_sndvoid++, si = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user