[asterisk-commits] rmudgett: trunk r392972 - /trunk/res/res_parking.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 26 14:15:25 CDT 2013
Author: rmudgett
Date: Wed Jun 26 14:15:23 2013
New Revision: 392972
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392972
Log:
Remove some redundant parking config error messages.
Modified:
trunk/res/res_parking.c
Modified: trunk/res/res_parking.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_parking.c?view=diff&rev=392972&r1=392971&r2=392972
==============================================================================
--- trunk/res/res_parking.c (original)
+++ trunk/res/res_parking.c Wed Jun 26 14:15:23 2013
@@ -527,13 +527,8 @@
break;
}
- if (!parameter) {
- ast_log(LOG_ERROR, "Unable to handle option '%s'\n", var->name);
- return -1;
- }
-
- if (parking_feature_flag_cfg(parameter, var->value)) {
- ast_log(LOG_ERROR, "'%s' is not a valid value for parking lot option '%s'\n", var->value, var->name);
+ ast_assert(parameter != NULL);
+ if (!parameter || parking_feature_flag_cfg(parameter, var->value)) {
return -1;
}
More information about the asterisk-commits
mailing list