Merged revisions 320947 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Thu, 26 May 2011 16:54:06 +0000 (16:54 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 26 May 2011 16:54:06 +0000 (16:54 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r320947 | russell | 2011-05-26 10:57:13 -0500 (Thu, 26 May 2011) | 2 lines

  Remove some variables that were set but unused.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@321003 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_alsa.c

index bfc75cc..b1e7c30 100644 (file)
@@ -383,7 +383,6 @@ static int alsa_write(struct ast_channel *chan, struct ast_frame *f)
        static char sizbuf[8000];
        static int sizpos = 0;
        int len = sizpos;
-       int pos;
        int res = 0;
        /* size_t frames = 0; */
        snd_pcm_state_t state;
@@ -397,7 +396,6 @@ static int alsa_write(struct ast_channel *chan, struct ast_frame *f)
        } else {
                memcpy(sizbuf + sizpos, f->data.ptr, f->datalen);
                len += f->datalen;
-               pos = 0;
                state = snd_pcm_state(alsa.ocard);
                if (state == SND_PCM_STATE_XRUN)
                        snd_pcm_prepare(alsa.ocard);