remove redundant var
remove variable and fix warning
Merge pull request #10536 from vipulnsward/fix_exp_warning

remove variable and fix warning
Merge pull request #10535 from vipulnsward/remove_var

remove redundant var