From c6142cf2cc7312122abcf74d6ab1daf0ad1d72bf Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Mon, 11 Jun 2012 15:23:30 +0000 Subject: 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 --- channels/sip/sdp_crypto.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'channels/sip/sdp_crypto.c') 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) -- cgit v1.2.3