remove useless checks of the result of ast_strdupa
[asterisk/asterisk.git] / funcs / func_cdr.c
index c5cadc7..e930f48 100644 (file)
@@ -64,10 +64,6 @@ static char *builtin_function_cdr_read(struct ast_channel *chan, char *cmd, char
                return NULL;
 
        parse = ast_strdupa(data);
-       if (!parse) {
-               ast_log(LOG_ERROR, "Out of memory!\n");
-               return NULL;
-       }
 
        AST_STANDARD_APP_ARGS(args, parse);
        
@@ -93,10 +89,6 @@ static void builtin_function_cdr_write(struct ast_channel *chan, char *cmd, char
                return;
        
        parse = ast_strdupa(data);
-       if (!parse) {
-               ast_log(LOG_ERROR, "Out of memory!\n");
-               return;
-       }
 
        AST_STANDARD_APP_ARGS(args, parse);