diff options
author | Walter Doekes <walter+asterisk@wjd.nu> | 2012-04-17 18:57:40 +0000 |
---|---|---|
committer | Walter Doekes <walter+asterisk@wjd.nu> | 2012-04-17 18:57:40 +0000 |
commit | fc63e07135d645af0df8d393aa84c0ae3b7e1924 (patch) | |
tree | f40524fe8e0facf5542c6b02041bc1fc63eae66e /codecs/codec_dahdi.c | |
parent | 70c5ac6635062efe03b51fb6c7afd30c22028be9 (diff) |
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky
Review: https://reviewboard.asterisk.org/r/1743/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/codec_dahdi.c')
-rw-r--r-- | codecs/codec_dahdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codecs/codec_dahdi.c b/codecs/codec_dahdi.c index 832f856ad..442a101d1 100644 --- a/codecs/codec_dahdi.c +++ b/codecs/codec_dahdi.c @@ -592,7 +592,7 @@ static int find_transcoders(void) { struct dahdi_transcoder_info info = { 0, }; struct format_map map = { { { 0 } } }; - int fd, res; + int fd; unsigned int x, y; if ((fd = open("/dev/dahdi/transcode", O_RDWR)) < 0) { @@ -600,7 +600,7 @@ static int find_transcoders(void) return 0; } - for (info.tcnum = 0; !(res = ioctl(fd, DAHDI_TC_GETINFO, &info)); info.tcnum++) { + for (info.tcnum = 0; !ioctl(fd, DAHDI_TC_GETINFO, &info); info.tcnum++) { ast_verb(2, "Found transcoder '%s'.\n", info.name); /* Complex codecs need to support signed linear. If the |