summaryrefslogtreecommitdiff
path: root/channels/sip/sdp_crypto.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2012-06-11 15:23:30 +0000
committerKinsey Moore <kmoore@digium.com>2012-06-11 15:23:30 +0000
commitc6142cf2cc7312122abcf74d6ab1daf0ad1d72bf (patch)
tree3d00ae5c1e40b99710f72f10a1f65d62ce83b01d /channels/sip/sdp_crypto.c
parent566ea22e1878ad6a576431d1035a5fe9b4a936d1 (diff)
Fix coverity UNUSED_VALUE findings in core support level files
Most of these were just saving returned values without using them and in some cases the variable being saved to could be removed as well. (issue ASTERISK-19672) ........ Merged revisions 368738 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 368739 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sip/sdp_crypto.c')
-rw-r--r--channels/sip/sdp_crypto.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/channels/sip/sdp_crypto.c b/channels/sip/sdp_crypto.c
index 85adf83eb..7f8835514 100644
--- a/channels/sip/sdp_crypto.c
+++ b/channels/sip/sdp_crypto.c
@@ -52,9 +52,7 @@ static int set_crypto_policy(struct ast_srtp_policy *policy, int suite_val, cons
static struct sdp_crypto *sdp_crypto_alloc(void)
{
- struct sdp_crypto *crypto;
-
- return crypto = ast_calloc(1, sizeof(*crypto));
+ return ast_calloc(1, sizeof(struct sdp_crypto));
}
void sdp_crypto_destroy(struct sdp_crypto *crypto)