[asterisk-commits] file: branch file/pimp_sip_location r381442 - /team/file/pimp_sip_location/re...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 14 11:24:07 CST 2013


Author: file
Date: Thu Feb 14 11:24:04 2013
New Revision: 381442

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381442
Log:
Minor clean up.

Modified:
    team/file/pimp_sip_location/res/res_sip/location.c

Modified: team/file/pimp_sip_location/res/res_sip/location.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pimp_sip_location/res/res_sip/location.c?view=diff&rev=381442&r1=381441&r2=381442
==============================================================================
--- team/file/pimp_sip_location/res/res_sip/location.c (original)
+++ team/file/pimp_sip_location/res/res_sip/location.c Thu Feb 14 11:24:04 2013
@@ -38,13 +38,7 @@
 /*! \brief Allocator for AOR */
 static void *aor_alloc(const char *name)
 {
-	struct ast_sip_aor *aor = ao2_alloc_options(sizeof(*aor), aor_destroy, AO2_ALLOC_OPT_LOCK_NOLOCK);
-
-	if (!aor) {
-		return NULL;
-	}
-
-	return aor;
+	return ao2_alloc_options(sizeof(*aor), aor_destroy, AO2_ALLOC_OPT_LOCK_NOLOCK);
 }
 
 /*! \brief Destructor for contact */




More information about the asterisk-commits mailing list