Replace NOCDEV with NULL. NOCDEV was ((void *)-1) and as inherited