summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-12-09 05:31:46 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-12-09 05:31:46 -0600
commitb8a0770d748a0d15d809473c5b2fb4be1ac182fb (patch)
treed6d3191ae91f672f91c0753a2507f30ca7dd2f4a /channels/chan_sip.c
parent91ff772dd78b7b70defc336d9a280717de02061f (diff)
parent51118e7d70fff89b229fe9937108129911ff2f78 (diff)
Merge "chan_sip: Delete unneeded check"
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 68b5c405d..71be9e38f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6885,10 +6885,9 @@ static int update_call_counter(struct sip_pvt *fup, int event)
ast_log(LOG_ERROR, "update_call_counter(%s, %d) called with no event!\n", name, event);
}
- if (p) {
- ast_devstate_changed(AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, "SIP/%s", p->name);
- sip_unref_peer(p, "update_call_counter: sip_unref_peer from call counter");
- }
+ ast_devstate_changed(AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, "SIP/%s", p->name);
+ sip_unref_peer(p, "update_call_counter: sip_unref_peer from call counter");
+
return 0;
}