commit | c3deaa30d51dc6336365f0fee3843419fa8616f9 | [log] [tgz] |
---|---|---|
author | Bjorn Volcker <bjornv@webrtc.org> | Thu May 28 14:30:22 2015 +0200 |
committer | Bjorn Volcker <bjornv@webrtc.org> | Thu May 28 12:30:29 2015 +0000 |
tree | e3f47bfd15ef0259eb3223e64ba1015f92cf0ab5 | |
parent | 796e17237b25d0e46ad89263eb09ab971b4d2074 [diff] |
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}
diff --git a/webrtc/common_audio/vad/include/webrtc_vad.h b/webrtc/common_audio/vad/include/webrtc_vad.h index 896493e..51f7b8d 100644 --- a/webrtc/common_audio/vad/include/webrtc_vad.h +++ b/webrtc/common_audio/vad/include/webrtc_vad.h
@@ -25,7 +25,6 @@ #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 fcf03f8..5af1b5b 100644 --- a/webrtc/common_audio/vad/webrtc_vad.c +++ b/webrtc/common_audio/vad/webrtc_vad.c
@@ -24,9 +24,6 @@ VadInst* WebRtcVad_Create() { VadInstT* self = (VadInstT*)malloc(sizeof(VadInstT)); - if (self == NULL) { - return NULL; - } WebRtcSpl_Init(); self->init_flag = 0;