Remove needless extern

For function, it makes no difference whether it have or not.