Change this function to void type Remove some parameters check, add these checks as preconditions Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>