]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't null check what we know won't be null
authorMichael Jerris <mike@jerris.com>
Thu, 1 May 2014 23:00:24 +0000 (19:00 -0400)
committerMichael Jerris <mike@jerris.com>
Thu, 1 May 2014 23:00:24 +0000 (19:00 -0400)
src/mod/codecs/mod_silk/mod_silk.c

index 2708a0f6dad9ef08a1466be199f9e98b2ebefdd0..c3dba44a8574bd90fafbd96fc3911a8e6d24f7e8 100644 (file)
@@ -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) {