Multiple assignments to a single variable without an intervening usage makes the first assignment redundant. Its value is lost.
Ensure that the second assignment is in fact correct. Then delete the first assignment (taking care not to delete right hand side if it has side effects).
In this example,
x is assigned the value of 42 but then the value is changed to 12
x is used. This makes the first assignment useless.