return NULL;
idp->id_free = p->ary[0];
idp->id_free_cnt--;
- p->ary[0] = NULL;
+ p->ary[0] = 0;
spin_unlock(&idp->lock);
return(p);
}
*/
for (new = p; p && p != idp->top; new = p) {
p = p->ary[0];
- new->ary[0] = NULL;
+ new->ary[0] = 0;
new->bitmap = new->count = 0;
free_layer(idp, new);
}
{
if (!idr_layer_cache)
idr_layer_cache = kmem_cache_create("idr_layer_cache",
- sizeof(struct idr_layer), 0, 0, idr_cache_ctor, NULL);
+ sizeof(struct idr_layer), 0, 0, idr_cache_ctor, 0);
return 0;
}