Commit 3e054dea authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews

daemon: avoid dead stores as reported by scan-build

Change-Id: Ief87e4c1d6f5a7d9f83b0599396e8eb85ea4f23f
parent 8327cdab
......@@ -133,7 +133,6 @@ ZrtpSessionCallback::showMessage(GnuZrtpCodes::MessageSeverity sev, int32_t subC
{
if (sev == ZrtpError) {
if (subCode < 0) { // received an error packet from peer
subCode *= -1;
DEBUG("Received an error packet from peer:");
} else
DEBUG("Sent error packet to peer:");
......
......@@ -153,7 +153,7 @@ PresSubServer::pres_on_rx_subscribe_request(pjsip_rx_data *rdata)
status = pjsip_dlg_create_response(dlg, rdata, code, NULL, &tdata);
if (status == PJ_SUCCESS) {
status = pjsip_dlg_send_response(dlg, pjsip_rdata_get_tsx(rdata), tdata);
pjsip_dlg_send_response(dlg, pjsip_rdata_get_tsx(rdata), tdata);
}
pres->unlock();
......@@ -208,7 +208,7 @@ PresSubServer::pres_on_rx_subscribe_request(pjsip_rx_data *rdata)
ev_state = PJSIP_EVSUB_STATE_ACTIVE;
if (presSubServer->getExpires() == 0) {
ev_state = PJSIP_EVSUB_STATE_TERMINATED;
// PJSIP_EVSUB_STATE_TERMINATED
pres->unlock();
return PJ_TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment