*
* $FreeBSD: src/sys/dev/firewire/fwohci.c,v 1.72 2004/01/22 14:41:17 simokawa Exp $
* $FreeBSD: src/sys/dev/firewire/fwohci.c,v 1.1.2.19 2003/05/01 06:24:37 simokawa Exp $
- * $DragonFly: src/sys/bus/firewire/fwohci.c,v 1.19 2008/07/18 03:51:28 dillon Exp $
*/
#define ATRQ_CH 0
| OHCI_INT_DMA_ARRQ | OHCI_INT_DMA_ARRS
| OHCI_INT_PHY_BUS_R);
- if (sc->fc.arq !=0 && sc->fc.arq->maxq > 0)
+ if (sc->fc.arq != NULL && sc->fc.arq->maxq > 0)
fw_drain_txq(&sc->fc);
/* XXX Link down? Bus reset? */
int err = 0;
it = &dbch->xferq;
- if(it->buf == 0){
+ if(it->buf == NULL) {
err = EINVAL;
return err;
}
u_char tag, *resp, *resinfo, *startres = NULL;
int large_len, scanning = len, retval = FALSE;
u_int32_t logical_id;
- device_t dev = 0;
+ device_t dev = NULL;
int ldn = 0;
struct pnp_set_config_arg *csnldn;
char buf[100];
if (startres) {
pnp_parse_resources(dev, startres,
resinfo - startres - 1, ldn);
- dev = 0;
+ dev = NULL;
startres = NULL;
}
}
pnp_parse_resources(dev, startres,
resinfo - startres - 1, ldn);
- dev = 0;
+ dev = NULL;
startres = NULL;
scanning = 0;
break;
* rights to redistribute these changes.
*
* $FreeBSD: src/sys/ddb/db_kld.c,v 1.9 2000/01/11 13:25:12 peter Exp $
- * $DragonFly: src/sys/ddb/db_kld.c,v 1.5 2008/07/23 16:39:32 dillon Exp $
* from db_aout.c,v 1.20 1998/06/07 17:09:36 dfr Exp
*/
linker_symval_t symval;
symval.name = NULL;
- symval.value = 0;
+ symval.value = NULL;
linker_ddb_symbol_values(sym, &symval);
if (namep)
*namep = (const char*) symval.name;
{
/* Make sure we aren't double destroying */
- if (mpt->reply_dmat == 0) {
+ if (mpt->reply_dmat == NULL) {
mpt_lprt(mpt, MPT_PRT_DEBUG, "already released dma memory\n");
return;
}
if (ctlr->r_irq) {
bus_teardown_intr(dev, ctlr->r_irq, ctlr->handle);
bus_release_resource(dev, SYS_RES_IRQ, ATA_IRQ_RID, ctlr->r_irq);
- ctlr->r_irq = 0;
+ ctlr->r_irq = NULL;
}
if (ctlr->r_res2) {
bus_release_resource(dev, ctlr->r_type2, ctlr->r_rid2, ctlr->r_res2);
- ctlr->r_res2 = 0;
+ ctlr->r_res2 = NULL;
}
if (ctlr->r_res1) {
bus_release_resource(dev, ctlr->r_type1, ctlr->r_rid1, ctlr->r_res1);
- ctlr->r_res1 = 0;
+ ctlr->r_res1 = NULL;
}
return 0;
target_id = pSRB->pccb->ccb_h.target_id;
target_lun = pSRB->pccb->ccb_h.target_lun;
TRM_DPRINTF(":pDCB->pActiveSRB= %8x \n ",(u_int) pDCB->pActiveSRB);
- pACB->pActiveDCB = 0;
+ pACB->pActiveDCB = NULL;
pSRB->ScsiPhase = PH_BUS_FREE;
/* SCSI bus free Phase */
trm_reg_write16((DO_CLRFIFO | DO_HWRESELECT), TRMREG_SCSI_CONTROL);
pACB->pFreeSRB = pSRB;
pSRB = psrb;
}
- pDCB->pGoingSRB = 0;
+ pDCB->pGoingSRB = NULL;
trm_DoWaitingSRB(pACB);
} else {
if ((pSRB->SRBState & (SRB_START_+SRB_MSGOUT)) ||
/*
* SRB_COMPLETED
*/
- pDCB->pActiveSRB = 0;
+ pDCB->pActiveSRB = NULL;
pSRB->SRBState = SRB_FREE;
trm_SRBdone(pACB, pDCB, pSRB);
}
bcopy(&pACB->DCBarray[target_id][0], pDCB,
sizeof(TRM_DCB));
crit_enter();
- if (pACB->pLinkDCB == 0) {
+ if (pACB->pLinkDCB == NULL) {
pACB->pLinkDCB = pDCB;
/*
* RunRobin impersonate the role
{
struct cam_devq *device_Q;
u_long device_id;
- PACB pACB = 0;
+ PACB pACB = NULL;
int rid = 0;
int unit = device_get_unit(dev);
if (sc->port_res) {
bus_release_resource(dev, SYS_RES_IOPORT,
sc->port_rid, sc->port_res);
- sc->port_res = 0;
+ sc->port_res = NULL;
}
if (sc->mem_res) {
bus_release_resource(dev, SYS_RES_MEMORY,
sc->mem_rid, sc->mem_res);
- sc->mem_res = 0;
+ sc->mem_res = NULL;
}
if (sc->irq_res) {
bus_release_resource(dev, SYS_RES_IRQ,
sc->irq_rid, sc->irq_res);
- sc->irq_res = 0;
+ sc->irq_res = NULL;
}
}
/* stop all ctl tasks and disable the worker taskqueue */
hpt_stop_tasks(vbus_ext);
- vbus_ext->worker.ta_context = 0;
+ vbus_ext->worker.ta_context = NULL;
/* flush devices */
for (i=0; i<osm_max_targets; i++) {
OSM_TASK *tasks;
tasks = vbus_ext->tasks;
- vbus_ext->tasks = 0;
+ vbus_ext->tasks = NULL;
while (tasks) {
OSM_TASK *t = tasks;
tasks = t->next;
- t->next = 0;
+ t->next = NULL;
t->func(vbus_ext->vbus, t->data);
}
}
static void hpt_ioctl_done(struct _IOCTL_ARG *arg)
{
- arg->ioctl_cmnd = 0;
+ arg->ioctl_cmnd = NULL;
wakeup(arg);
}
arg.lpOutBuffer = outbuf;\
arg.nInBufferSize = insize;\
arg.nOutBufferSize = outsize;\
- arg.lpBytesReturned = 0;\
+ arg.lpBytesReturned = NULL;\
hpt_do_ioctl(&arg);\
arg.result;\
})
#endif
#define mArGetArrayTable(pVArray) \
- if((pVArray = _vbus_(pFreeArrayLink)) != 0) { \
+ if((pVArray = _vbus_(pFreeArrayLink)) != NULL) { \
_vbus_(pFreeArrayLink) = (PVDevice)_vbus_(pFreeArrayLink)->pVBus; \
ZeroMemory(pVArray, ARRAY_VDEV_SIZE); \
_SET_ARRAY_BUS_(pVArray) \
if (pArray->pVBus!=_vbus_p) { HPT_ASSERT(0); return -1;}
for(i = 0; i < pArray->u.array.bArnMember; i++)
- if((pArray->u.array.pMember[i] == 0) || !pArray->u.array.pMember[i]->vf_online)
+ if((pArray->u.array.pMember[i] == NULL) || !pArray->u.array.pMember[i]->vf_online)
{
if(pArray->u.array.pMember[i] != NULL)
pArray->u.array.pMember[i]->pParent = NULL;
if (nInBufferSize!=sizeof(DEVICEID)) return -1;
id = *(DEVICEID *)lpInBuffer;
- while(pAdapter != 0)
+ while(pAdapter != NULL)
{
pVBus = &pAdapter->VBus;
for(i = 0; i < MAX_VDEVICE_PER_VBUS; i++)
/* stop all ctl tasks and disable the worker taskqueue */
hpt_stop_tasks(vbus_ext);
- vbus_ext->worker.ta_context = 0;
+ vbus_ext->worker.ta_context = NULL;
/* flush devices */
for (i=0; i<osm_max_targets; i++) {
OSM_TASK *tasks;
tasks = vbus_ext->tasks;
- vbus_ext->tasks = 0;
+ vbus_ext->tasks = NULL;
while (tasks) {
OSM_TASK *t = tasks;
tasks = t->next;
- t->next = 0;
+ t->next = NULL;
t->func(vbus_ext->vbus, t->data);
}
}
static void hpt_ioctl_done(struct _IOCTL_ARG *arg)
{
- arg->ioctl_cmnd = 0;
+ arg->ioctl_cmnd = NULL;
wakeup(arg);
}
arg.lpOutBuffer = outbuf;\
arg.nInBufferSize = insize;\
arg.nOutBufferSize = outsize;\
- arg.lpBytesReturned = 0;\
+ arg.lpBytesReturned = NULL;\
hpt_do_ioctl(&arg);\
arg.result;\
})
KdPrint(("SET_ARRAY_STATE(%x, %d)", param[0], param[1]));
result = HPT_DO_IOCTL(HPT_IOCTL_SET_ARRAY_STATE,
- param, sizeof(param), 0, 0);
+ param, sizeof(param), NULL, 0);
for (i=0; i<devinfo.u.array.nDisk; i++)
if (DEVICEID_VALID(devinfo.u.array.Members[i]))
VOP_CLOSE(devvp, FREAD);
vn_unlock(devvp);
}
- if (args.fspec == 0) {
+ if (args.fspec == NULL) {
/*
* Process export requests.
*/
p->p_rtprio.prio = 0;
lp->lwp_rtprio = p->p_rtprio;
- p->p_peers = 0;
+ p->p_peers = NULL;
p->p_leader = p;
bcopy("swapper", p->p_comm, sizeof ("swapper"));
linker_file_t
linker_find_file_by_name(const char* filename)
{
- linker_file_t lf = 0;
+ linker_file_t lf = NULL;
char *koname;
int i;
linker_file_t
linker_find_file_by_id(int fileid)
{
- linker_file_t lf = 0;
+ linker_file_t lf = NULL;
lockmgr(&lock, LK_SHARED);
TAILQ_FOREACH(lf, &linker_files, link)
linker_file_t
linker_make_file(const char* pathname, void* priv, struct linker_file_ops* ops)
{
- linker_file_t lf = 0;
+ linker_file_t lf = NULL;
const char *filename;
filename = rindex(pathname, '/');
* XXX Assume a common symbol if its value is 0 and it has a non-zero
* size, otherwise it could be an absolute symbol with a value of 0.
*/
- if (symval.value == 0 && symval.size != 0) {
+ if (symval.value == NULL && symval.size != 0) {
/*
* For commons, first look them up in the dependancies and
* only allocate space if not found there.
c_linker_sym_t best;
c_linker_sym_t es;
- best = 0;
+ best = NULL;
bestdiff = off;
TAILQ_FOREACH(lf, &linker_files, link) {
if (lf->ops->search_symbol(lf, value, &es, &diff) != 0)
continue;
- if (es != 0 && diff < bestdiff) {
+ if (es != NULL && diff < bestdiff) {
best = es;
bestdiff = diff;
}
*diffp = bestdiff;
return 0;
} else {
- *sym = 0;
+ *sym = NULL;
*diffp = off;
return ENOENT;
}
*/
lp->lwp_sigstk.ss_flags = SS_DISABLE;
lp->lwp_sigstk.ss_size = 0;
- lp->lwp_sigstk.ss_sp = 0;
+ lp->lwp_sigstk.ss_sp = NULL;
lp->lwp_flags &= ~LWP_ALTSTACK;
/*
* Reset no zombies if child dies flag as Solaris does.
dp = (Elf_Dyn*) &_DYNAMIC;
if (dp) {
ef = kmalloc(sizeof(struct elf_file), M_LINKER, M_INTWAIT | M_ZERO);
- ef->address = 0;
+ ef->address = NULL;
#ifdef SPARSE_MAPPING
- ef->object = 0;
+ ef->object = NULL;
#endif
ef->dynamic = dp;
modname = NULL;
ef->modptr = modptr;
ef->address = *(caddr_t *)baseptr;
#ifdef SPARSE_MAPPING
- ef->object = 0;
+ ef->object = NULL;
#endif
dp = (vm_offset_t)ef->address + *(vm_offset_t *)dynptr;
ef->dynamic = (Elf_Dyn *)dp;
if (error)
goto out;
link_elf_symbol_values(lf, sym, &symval);
- if (symval.value == 0) {
+ if (symval.value == NULL) {
error = ESRCH;
goto out;
}
if (error)
goto out;
link_elf_symbol_values(lf, sym, &symval);
- if (symval.value == 0) {
+ if (symval.value == NULL) {
error = ESRCH;
goto out;
}
device_probe_child(device_t dev, device_t child)
{
devclass_t dc;
- driverlink_t best = 0;
+ driverlink_t best = NULL;
driverlink_t dl;
int result, pri = 0;
- int hasclass = (child->devclass != 0);
+ int hasclass = (child->devclass != NULL);
dc = dev->devclass;
if (!dc)
* best matching driver. Initialise the value
* of pri for the first match.
*/
- if (best == 0 || result > pri) {
+ if (best == NULL || result > pri) {
best = dl;
pri = result;
continue;
{
const char *name = device_get_name(dev);
- if (name == 0)
+ if (name == NULL)
return kprintf("unknown: ");
else
return kprintf("%s%d: ", name, device_get_unit(dev));
device_doattach(device_t dev)
{
device_t bus = dev->parent;
- int hasclass = (dev->devclass != 0);
+ int hasclass = (dev->devclass != NULL);
int error;
error = DEVICE_ATTACH(dev);
bus_alloc_resource(device_t dev, int type, int *rid, u_long start, u_long end,
u_long count, u_int flags)
{
- if (dev->parent == 0)
+ if (dev->parent == NULL)
return(0);
return(BUS_ALLOC_RESOURCE(dev->parent, dev, type, rid, start, end,
count, flags, -1));
struct resource *
bus_alloc_legacy_irq_resource(device_t dev, int *rid, u_long irq, u_int flags)
{
- if (dev->parent == 0)
+ if (dev->parent == NULL)
return(0);
return BUS_ALLOC_RESOURCE(dev->parent, dev, SYS_RES_IRQ, rid,
irq, irq, 1, flags, machintr_legacy_intr_cpuid(irq));
int
bus_activate_resource(device_t dev, int type, int rid, struct resource *r)
{
- if (dev->parent == 0)
+ if (dev->parent == NULL)
return(EINVAL);
return(BUS_ACTIVATE_RESOURCE(dev->parent, dev, type, rid, r));
}
int
bus_deactivate_resource(device_t dev, int type, int rid, struct resource *r)
{
- if (dev->parent == 0)
+ if (dev->parent == NULL)
return(EINVAL);
return(BUS_DEACTIVATE_RESOURCE(dev->parent, dev, type, rid, r));
}
int
bus_release_resource(device_t dev, int type, int rid, struct resource *r)
{
- if (dev->parent == 0)
+ if (dev->parent == NULL)
return(EINVAL);
return(BUS_RELEASE_RESOURCE(dev->parent, dev, type, rid, r));
}
driver_intr_t handler, void *arg, void **cookiep,
lwkt_serialize_t serializer, const char *desc)
{
- if (dev->parent == 0)
+ if (dev->parent == NULL)
return EINVAL;
return BUS_SETUP_INTR(dev->parent, dev, r, flags, handler, arg,
cookiep, serializer, desc);
int
bus_teardown_intr(device_t dev, struct resource *r, void *cookie)
{
- if (dev->parent == 0)
+ if (dev->parent == NULL)
return(EINVAL);
return(BUS_TEARDOWN_INTR(dev->parent, dev, r, cookie));
}
lwkt_gettoken(&tty_token);
tp = dev->si_tty;
- if (tp->t_oproc == 0) {
+ if (tp->t_oproc == NULL) {
lwkt_reltoken(&tty_token);
return (EIO);
}
MH_ALIGN(n, remain);
} else if (remain == 0) {
n = m->m_next;
- m->m_next = 0;
+ m->m_next = NULL;
return (n);
} else {
n = m_get(wait, m->m_type);
n->m_len = remain;
m->m_len = len;
n->m_next = m->m_next;
- m->m_next = 0;
+ m->m_next = NULL;
return (n);
}
#define PULLUP_TO(len) do { \
if ((*m)->m_len < (len) \
- && (*m = m_pullup(*m, (len))) == 0) { \
+ && (*m = m_pullup(*m, (len))) == NULL) {\
goto dropit; \
} \
*pip6 = ip6 = mtod(*m, struct ip6_hdr *); \
}
default:
- if (ifp == NULL || ifp->if_ioctl == 0)
+ if (ifp == NULL || ifp->if_ioctl == NULL)
return (EOPNOTSUPP);
ifnet_serialize_all(ifp);
error = ifp->if_ioctl(ifp, cmd, data, td->td_proc->p_ucred);
* If ifma->ifma_protospec is null, then if_addmulti() created
* a new record. Otherwise, we are done.
*/
- if (ifma->ifma_protospec != 0) {
+ if (ifma->ifma_protospec != NULL) {
crit_exit();
return ifma->ifma_protospec;
}
* that we are leaving the multicast group.
*/
mld6_stop_listening(in6m);
- ifma->ifma_protospec = 0;
+ ifma->ifma_protospec = NULL;
LIST_REMOVE(in6m, in6m_entry);
kfree(in6m, M_IPMADDR);
}
struct keycb *kp;
int error;
- if (sotorawcb(so) != 0)
+ if (sotorawcb(so) != NULL)
return EISCONN; /* XXX panic? */
kp = (struct keycb *)kmalloc(sizeof *kp, M_PCB, M_WAITOK|M_ZERO); /* XXX */
int tport = sipx->sipx_port;
sipx->sipx_port = 0; /* yech... */
- if (ifa_ifwithaddr((struct sockaddr *)sipx) == 0)
+ if (ifa_ifwithaddr((struct sockaddr *)sipx) == NULL)
return (EADDRNOTAVAIL);
sipx->sipx_port = tport;
}
if (sav->ivlen == 0)
break;
KMALLOC(sav->iv, caddr_t, sav->ivlen);
- if (sav->iv == 0) {
+ if (sav->iv == NULL) {
ipseclog((LOG_DEBUG, "key_setsaval: No more memory.\n"));
error = ENOBUFS;
goto fail;
struct netmsg_pru_attach smsg;
int error;
- if (sotorawcb(so) != 0) {
+ if (sotorawcb(so) != NULL) {
error = EISCONN; /* XXX panic? */
goto out;
}
union authctx ctx;
int err;
- if (sw->sw_ictx == 0)
+ if (sw->sw_ictx == NULL)
return EINVAL;
axf = sw->sw_axf;
swa = sw;
crda = crd;
axf = swa->sw_axf;
- if (swa->sw_ictx == 0)
+ if (swa->sw_ictx == NULL)
return (EINVAL);
bcopy(swa->sw_ictx, &ctx, axf->ctxsize);
blksz = axf->blocksize;
/* setup proc 0's pcb */
thread0.td_pcb->pcb_flags = 0;
thread0.td_pcb->pcb_cr3 = (int)IdlePTD; /* should already be setup */
- thread0.td_pcb->pcb_ext = 0;
+ thread0.td_pcb->pcb_ext = NULL;
lwp0.lwp_md.md_regs = &proc0_tf;
}
/*
* XXX don't copy the i/o pages. this should probably be fixed.
*/
- pcb2->pcb_ext = 0;
+ pcb2->pcb_ext = NULL;
/* Copy the LDT, if necessary. */
- if (pcb2->pcb_ldt != 0) {
+ if (pcb2->pcb_ldt != NULL) {
if (flags & RFMEM) {
pcb2->pcb_ldt->ldt_refcnt++;
} else {
/* setup proc 0's pcb */
thread0.td_pcb->pcb_flags = 0;
thread0.td_pcb->pcb_cr3 = KPML4phys;
- thread0.td_pcb->pcb_ext = 0;
+ thread0.td_pcb->pcb_ext = NULL;
lwp0.lwp_md.md_regs = &proc0_tf; /* XXX needed? */
/* Location of kernel stack for locore */
/*
* XXX don't copy the i/o pages. this should probably be fixed.
*/
- pcb2->pcb_ext = 0;
+ pcb2->pcb_ext = NULL;
/* Copy the LDT, if necessary. */
- if (pcb2->pcb_ldt != 0) {
+ if (pcb2->pcb_ldt != NULL) {
if (flags & RFMEM) {
pcb2->pcb_ldt->ldt_refcnt++;
} else {
/*
* XXX don't copy the i/o pages. this should probably be fixed.
*/
- pcb2->pcb_ext = 0;
+ pcb2->pcb_ext = NULL;
/* Copy the LDT, if necessary. */
- if (pcb2->pcb_ldt != 0) {
+ if (pcb2->pcb_ldt != NULL) {
if (flags & RFMEM) {
pcb2->pcb_ldt->ldt_refcnt++;
} else {
/*
* XXX don't copy the i/o pages. this should probably be fixed.
*/
- pcb2->pcb_ext = 0;
+ pcb2->pcb_ext = NULL;
/* Copy the LDT, if necessary. */
- if (pcb2->pcb_ldt != 0) {
+ if (pcb2->pcb_ldt != NULL) {
if (flags & RFMEM) {
pcb2->pcb_ldt->ldt_refcnt++;
} else {
* Finally, throw away the fdescmount structure
*/
kfree(mp->mnt_data, M_FDESCMNT); /* XXX */
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
return (0);
}
hpmp = VFSTOHPFS(mp);
- if (args.fspec == 0) {
+ if (args.fspec == NULL) {
dprintf(("export 0x%x\n",args.export.ex_flags));
error = vfs_export(mp, &hpmp->hpm_export, &args.export);
if (error) {
/* $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/msdosfs/Attic/msdosfs_vfsops.c,v 1.60.2.8 2004/03/02 09:43:04 tjr Exp $ */
-/* $DragonFly: src/sys/vfs/msdosfs/msdosfs_vfsops.c,v 1.52 2008/09/17 21:44:24 dillon Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
vn_unlock(devvp);
pmp->pm_flags &= ~MSDOSFSMNT_RONLY;
}
- if (args.fspec == 0) {
+ if (args.fspec == NULL) {
#ifdef __notyet__ /* doesn't work correctly with current mountd XXX */
if (args.flags & MSDOSFSMNT_MNTOPT) {
pmp->pm_flags &= ~MSDOSFSMNT_MNTOPT;
*/
if (mp->mnt_flag & MNT_UPDATE) {
/* if not updating name...*/
- if (args.fspec == 0) {
+ if (args.fspec == NULL) {
/*
* Process export requests. Jumping to "success"
* will return the vfs_export() error code.
* @(#)procfs_vfsops.c 8.7 (Berkeley) 5/10/95
*
* $FreeBSD: src/sys/miscfs/procfs/procfs_vfsops.c,v 1.32.2.1 2001/10/15 20:42:01 des Exp $
- * $DragonFly: src/sys/vfs/procfs/procfs_vfsops.c,v 1.17 2007/09/03 17:06:24 dillon Exp $
*/
/*
mp->mnt_flag |= MNT_LOCAL;
mp->mnt_kern_flag |= MNTK_NOSTKMNT;
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
vfs_getnewfsid(mp);
size = sizeof("procfs") - 1;
}
bcopy(indirdep->ir_saveddata, bp->b_data, bp->b_bcount);
kfree(indirdep->ir_saveddata, M_INDIRDEP);
- indirdep->ir_saveddata = 0;
+ indirdep->ir_saveddata = NULL;
indirdep->ir_state &= ~UNDONE;
indirdep->ir_state |= ATTACHED;
while ((aip = LIST_FIRST(&indirdep->ir_donehd)) != NULL) {
/*
* If no outstanding dependencies, free it.
*/
- if (free_inodedep(inodedep) || TAILQ_FIRST(&inodedep->id_inoupdt) == 0)
+ if (free_inodedep(inodedep) || TAILQ_FIRST(&inodedep->id_inoupdt) == NULL)
return (0);
return (hadchanges);
}
* Otherwise it will remain to update the page before it
* is written back to disk.
*/
- if (LIST_FIRST(&pagedep->pd_pendinghd) == 0) {
+ if (LIST_FIRST(&pagedep->pd_pendinghd) == NULL) {
for (i = 0; i < DAHASHSZ; i++)
if (LIST_FIRST(&pagedep->pd_diraddhd[i]) != NULL)
break;
*/
pagedep = WK_PAGEDEP(wk);
for (i = 0; i < DAHASHSZ; i++) {
- if (LIST_FIRST(&pagedep->pd_diraddhd[i]) == 0)
+ if (LIST_FIRST(&pagedep->pd_diraddhd[i]) == NULL)
continue;
if ((error =
flush_pagedep_deps(info->vp,