remove useless type check
update corresponding common_c.c file