remove unnecessary var
Merge pull request #1307 from xuwei-k/remove-unnecessary-var

remove unnecessary var