vf_idet: remove some unnecessary statement and unused variable