Removing a redundant assignment