drvmgr_get_dev_prefix returns 0 if a prefix was found. Therefore the if condition needs to check for 0, i.e. DRVMGR_OK.