Bug 1587905 - Remove useless variable 'r' declaration & assignation r=bwc
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 11 Oct 2019 07:32:47 +0000
changeset 497266 ace16b7e7aa6fe5233bc9a0ddbf9923a04cfadb7
parent 497265 f0ce1a1f84cba2d5313fa46adbc8e04edec85835
child 497267 9537a9c43cb435c6f5211a41b0495ad99c381902
push id97763
push usersledru@mozilla.com
push dateFri, 11 Oct 2019 07:35:35 +0000
treeherderautoland@9537a9c43cb4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwc
bugs1587905
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1587905 - Remove useless variable 'r' declaration & assignation r=bwc Differential Revision: https://phabricator.services.mozilla.com/D48890
media/mtransport/nricectx.cpp
--- a/media/mtransport/nricectx.cpp
+++ b/media/mtransport/nricectx.cpp
@@ -1038,20 +1038,19 @@ void NrIceCtx::SetGatheringState(Gatheri
 
   SignalGatheringStateChange(this, state);
 }
 
 void NrIceCtx::GenerateObfuscatedAddress(nr_ice_candidate* candidate,
                                          std::string* mdns_address,
                                          std::string* actual_address) {
   if (candidate->type == HOST && obfuscate_host_addresses_) {
-    int r;
     char addr[64];
-    if ((r = nr_transport_addr_get_addrstring(&candidate->addr, addr,
-                                              sizeof(addr)))) {
+    if (nr_transport_addr_get_addrstring(&candidate->addr, addr,
+                                         sizeof(addr))) {
       return;
     }
 
     *actual_address = addr;
 
     const auto& iter = obfuscated_host_addresses_.find(*actual_address);
     if (iter != obfuscated_host_addresses_.end()) {
       *mdns_address = iter->second;