From: Michael Jerris Date: Thu, 1 May 2014 23:00:24 +0000 (-0400) Subject: don't null check what we know won't be null X-Git-Tag: v1.5.12~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db1a2de1868bcccb245d281b139b14c1eed208ef;p=thirdparty%2Ffreeswitch.git don't null check what we know won't be null --- diff --git a/src/mod/codecs/mod_silk/mod_silk.c b/src/mod/codecs/mod_silk/mod_silk.c index 2708a0f6da..c3dba44a85 100644 --- a/src/mod/codecs/mod_silk/mod_silk.c +++ b/src/mod/codecs/mod_silk/mod_silk.c @@ -338,7 +338,7 @@ static switch_status_t switch_silk_decode(switch_codec_t *codec, if (session) { jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO); } - if (jb && codec && codec->cur_frame) { + if (jb && codec->cur_frame) { for (i = 1; i <= MAX_LBRR_DELAY; i++) { found_frame = stfu_n_copy_next_frame(jb, (uint32_t)codec->cur_frame->timestamp, codec->cur_frame->seq, (uint16_t)i, &next_frame); if (found_frame) {