mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07:00
remove some unnecessary checks
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+3
-7
@@ -891,8 +891,7 @@ static struct localuser *wait_for_answer(struct queue_ent *qe, struct localuser
|
||||
if (option_verbose > 3)
|
||||
ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
|
||||
*to=0;
|
||||
if (f)
|
||||
ast_frfree(f);
|
||||
ast_frfree(f);
|
||||
return NULL;
|
||||
}
|
||||
if ((f->frametype == AST_FRAME_DTMF) && (f->subclass != '*') && valid_exit(qe, f->subclass)) {
|
||||
@@ -900,13 +899,10 @@ static struct localuser *wait_for_answer(struct queue_ent *qe, struct localuser
|
||||
ast_verbose(VERBOSE_PREFIX_3 "User pressed digit: %c\n", f->subclass);
|
||||
*to=0;
|
||||
*digit=f->subclass;
|
||||
if (f)
|
||||
ast_frfree(f);
|
||||
ast_frfree(f);
|
||||
return NULL;
|
||||
}
|
||||
if (f)
|
||||
ast_frfree(f);
|
||||
|
||||
ast_frfree(f);
|
||||
}
|
||||
if (!*to && (option_verbose > 2))
|
||||
ast_verbose( VERBOSE_PREFIX_3 "Nobody picked up in %d ms\n", orig);
|
||||
|
||||
Reference in New Issue
Block a user