diff --git a/webrtc/common_audio/vad/include/webrtc_vad.h b/webrtc/common_audio/vad/include/webrtc_vad.h index 896493e04..51f7b8d10 100644 --- a/webrtc/common_audio/vad/include/webrtc_vad.h +++ b/webrtc/common_audio/vad/include/webrtc_vad.h @@ -25,7 +25,6 @@ extern "C" { #endif // Creates an instance to the VAD structure. -// Returns a null pointer if create was unsuccessful. VadInst* WebRtcVad_Create(); // Frees the dynamic memory of a specified VAD instance. diff --git a/webrtc/common_audio/vad/webrtc_vad.c b/webrtc/common_audio/vad/webrtc_vad.c index fcf03f805..5af1b5bb0 100644 --- a/webrtc/common_audio/vad/webrtc_vad.c +++ b/webrtc/common_audio/vad/webrtc_vad.c @@ -24,9 +24,6 @@ static const int kMaxFrameLengthMs = 30; VadInst* WebRtcVad_Create() { VadInstT* self = (VadInstT*)malloc(sizeof(VadInstT)); - if (self == NULL) { - return NULL; - } WebRtcSpl_Init(); self->init_flag = 0;