common_audio/vad: Removes head allocation failure check

Related to https://webrtc-codereview.appspot.com/51919004/ where Create() was changed. This CL removes a useless malloc failure check.

BUG=441, 3347
R=kwiberg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/51109004

Cr-Commit-Position: refs/heads/master@{#9312}
This commit is contained in:
Bjorn Volcker 2015-05-28 14:30:22 +02:00
parent 796e17237b
commit c3deaa30d5
2 changed files with 0 additions and 4 deletions

View File

@ -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.

View File

@ -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;