summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-07-29 10:49:32 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-07-29 10:49:32 +0000
commit5e35eab5a2a4def8890547a29ba21fda4d1da9d7 (patch)
treee81dddd2cd9145413a0ec80c41c8105836befca0 /channels
parentc19549820ec491d866f1dc4fbfc9a91439a3b402 (diff)
minor simplification of a conditional statement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 894d74f64..8827d7b40 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18519,10 +18519,7 @@ static int sip_reload(int fd, int argc, char *argv[])
ast_verbose("Previous SIP reload not yet done\n");
else {
sip_reloading = TRUE;
- if (fd)
- sip_reloadreason = CHANNEL_CLI_RELOAD;
- else
- sip_reloadreason = CHANNEL_MODULE_RELOAD;
+ sip_reloadreason = fd ? CHANNEL_CLI_RELOAD : CHANNEL_MODULE_RELOAD;
}
ast_mutex_unlock(&sip_reload_lock);
restart_monitor();