Remove useless NULL memory check