]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2377] Minor code simplification
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 7 Dec 2012 16:49:15 +0000 (17:49 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 7 Dec 2012 16:49:15 +0000 (17:49 +0100)
src/lib/dns/master_loader.cc

index 34373638fb952de1b94ce8d1b853325e177a6074..74085b9c8d03a5bcc25cfdfb829a5136b5ce139c 100644 (file)
@@ -160,7 +160,7 @@ MasterLoader::MasterLoaderImpl::loadIncremental(size_t count_limit) {
             // the Rdata. The errors should have been reported by
             // callbacks_ already. We need to decide if we want to continue
             // or not.
-            if (data != rdata::RdataPtr()) {
+            if (data) {
                 add_callback_(name, rrclass, rrtype, ttl, data);
 
                 // Good, we loaded another one