remove the deprecated getunit function.
fix the build, missing return value from give_control_cmd.