net: remove type_check from dev_get_nest_level()