remove unnecessary check for NULL pointer.