Fix useless volatile variables.