remove redundant variable
Merge pull request #10302 from vipulnsward/remove_redundant_var

Remove redundant variable