Remove an unnecessary variable assignment