mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-18 17:35:04 -07:00
chan_sip: Delete unneeded check
P is always true. We check it before Change-Id: Iee61cda002a9f61aee26b9f66c5f9b59e3389efb
This commit is contained in:
committed by
Joshua Colp
parent
3aa4d891bb
commit
ec7d86c90f
+3
-4
@@ -6892,10 +6892,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user