[IOT-3041] return OC_STACK_OK when pDev2=NULL