Remove assignment without effect.
Merge pull request #7947 from cirosantilli/rm-assign-without-effect

Remove assignment without effect.