diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-05-07 19:49:32 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-05-07 19:49:32 +0000 |
commit | 6ce084b7e2c21985183d4adf8f6cbcc0b3e53fb6 (patch) | |
tree | 12320d6175b335cf73bf7f0945c9b1d9ff90bd39 /channels/chan_features.c | |
parent | fbbac7cd268098dbfadae1efd086823544756945 (diff) |
remove unreachable block of code (bug #4207)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_features.c')
-rwxr-xr-x | channels/chan_features.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c index 9a6b4412a..65d056cfb 100755 --- a/channels/chan_features.c +++ b/channels/chan_features.c @@ -449,9 +449,10 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in return NULL; } tmp = ast_channel_alloc(0); - if (!tmp) + if (!tmp) { + ast_log(LOG_WARNING, "Unable to allocate channel structure\n"); return NULL; - if (tmp) { + } tmp->tech = &features_tech; for (x=1;x<4;x++) { snprintf(tmp->name, sizeof(tmp->name), "Feature/%s/%s-%d", p->tech, p->dest, x); @@ -479,8 +480,6 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in usecnt++; ast_mutex_unlock(&usecnt_lock); ast_update_use_count(); - } else - ast_log(LOG_WARNING, "Unable to allocate channel structure\n"); return tmp; } |