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:
Russell Bryant
2005-07-25 18:15:25 +00:00
parent 7491dba549
commit e6f049f9bf
+3 -7
View File
@@ -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);