hal: clear code type

Signed-off-by Zhong Hongbo <bocui107@163.com>