From: Russell Bryant Date: Fri, 1 Feb 2008 06:14:29 +0000 (+0000) Subject: Get rid of a goto where there was no extra cleanup happening at the exit point X-Git-Tag: 1.6.0-beta3~2^2~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7382e9425f899924489ce265c453b1f5cd8b8676;p=thirdparty%2Fasterisk.git Get rid of a goto where there was no extra cleanup happening at the exit point git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101739 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_channelredirect.c b/apps/app_channelredirect.c index 325c681acb..cdb18a46f2 100644 --- a/apps/app_channelredirect.c +++ b/apps/app_channelredirect.c @@ -63,19 +63,18 @@ static int asyncgoto_exec(struct ast_channel *chan, void *data) if (ast_strlen_zero(args.channel) || ast_strlen_zero(args.label)) { ast_log(LOG_WARNING, "%s requires an argument (channel,[[context,]exten,]priority)\n", app); - goto quit; + return -1; } chan2 = ast_get_channel_by_name_locked(args.channel); if (!chan2) { ast_log(LOG_WARNING, "No such channel: %s\n", args.channel); - goto quit; + return -1; } res = ast_parseable_goto(chan2, args.label); ast_channel_unlock(chan2); -quit: return res; }