clean redundant checks in decoder
Merge pull request #488 from licaiguo/clean-redundant-check

clean redundant checks in decoder