Browse Source

[3161] Removed redundant condition as reported by cpp-check.

Marcin Siodelski 8 years ago
parent
commit
23e9b30e0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/dhcp4/dhcp4_srv.cc

+ 1 - 1
src/bin/dhcp4/dhcp4_srv.cc

@@ -1557,7 +1557,7 @@ Dhcpv4Srv::createNameChangeRequests(const Lease4Ptr& lease,
         isc_throw(isc::Unexpected,
                   "NULL lease specified when creating NameChangeRequest");
 
-    } else if (!old_lease || (old_lease && !lease->hasIdenticalFqdn(*old_lease))) {
+    } else if (!old_lease || !lease->hasIdenticalFqdn(*old_lease)) {
         // We may need to generate the NameChangeRequest for the new lease. It
         // will be generated only if hostname is set and if forward or reverse
         // update has been requested.