summaryrefslogtreecommitdiff
path: root/res/res_format_attr_silk.c
diff options
context:
space:
mode:
authorWalter Doekes <walter+asterisk@wjd.nu>2012-04-17 18:57:40 +0000
committerWalter Doekes <walter+asterisk@wjd.nu>2012-04-17 18:57:40 +0000
commitfc63e07135d645af0df8d393aa84c0ae3b7e1924 (patch)
treef40524fe8e0facf5542c6b02041bc1fc63eae66e /res/res_format_attr_silk.c
parent70c5ac6635062efe03b51fb6c7afd30c22028be9 (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 'res/res_format_attr_silk.c')
-rw-r--r--res/res_format_attr_silk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_format_attr_silk.c b/res/res_format_attr_silk.c
index 2d3c91b86..4f9bae739 100644
--- a/res/res_format_attr_silk.c
+++ b/res/res_format_attr_silk.c
@@ -80,8 +80,8 @@ static int silk_get_val(const struct ast_format_attr *fattr, int key, void *resu
*val = attr->packetloss_percentage;
break;
default:
- return -1;
ast_log(LOG_WARNING, "unknown attribute type %d\n", key);
+ return -1;
}
return 0;
}
@@ -122,8 +122,8 @@ static int silk_isset(const struct ast_format_attr *fattr, va_list ap)
}
break;
default:
- return -1;
ast_log(LOG_WARNING, "unknown attribute type %d\n", key);
+ return -1;
}
}
return 0;