From: Francis Dupont Date: Wed, 15 Mar 2023 13:37:58 +0000 (+0100) Subject: [#2766] Addressed comment X-Git-Tag: Kea-2.3.6~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45363387fbc8a8c80d02f253207af3fabf1b1a65;p=thirdparty%2Fkea.git [#2766] Addressed comment --- diff --git a/src/bin/dhcp6/tests/dhcp6_test_utils.cc b/src/bin/dhcp6/tests/dhcp6_test_utils.cc index 5749e0129f..c80c601594 100644 --- a/src/bin/dhcp6/tests/dhcp6_test_utils.cc +++ b/src/bin/dhcp6/tests/dhcp6_test_utils.cc @@ -682,12 +682,7 @@ Dhcpv6SrvTest::testReleaseNoDelete(Lease::Type type, const IOAddress& addr, const uint32_t iaid = 234; - uint8_t prefix_len; - if (type == Lease::TYPE_NA) { - prefix_len = 128; - } else { - prefix_len = pd_pool_->getLength(); - } + uint8_t prefix_len = (type == Lease::TYPE_NA ? 128 : pd_pool_->getLength()); // Generate client-id also duid_ OptionPtr clientid = generateClientId();