Remove useless pointer resets