Remove unnecessary assign operation