Commit 8fb0d93f06 for bind

commit 8fb0d93f061f2238492435bea8f60c6e204e66a8
Author: Matthijs Mekking <matthijs@isc.org>
Date:   Fri Oct 2 16:28:14 2026 +0200

    Remove redundant code

    No need to lock the zone and lookup the flags again, that has been
    done just a few lines above.

diff --git a/lib/dns/zone.c b/lib/dns/zone.c
index 9217eb984b..a523a5dfc9 100644
--- a/lib/dns/zone.c
+++ b/lib/dns/zone.c
@@ -10121,14 +10121,6 @@ zone_maintenance(dns_zone_t *zone) {
 	switch (zone->type) {
 	case dns_zone_primary:
 	case dns_zone_redirect:
-		LOCK_ZONE(zone);
-		notify = (dns_notifyctx_hasflag(&zone->notifysoa,
-						DNS_NOTIFY_NEEDSEND) ||
-			  dns_notifyctx_hasflag(&zone->notifysoa,
-						DNS_NOTIFY_NEEDSTARTUP)) &&
-			 isc_time_compare(&now, &zone->notifysoa.notifytime) >=
-				 0;
-		UNLOCK_ZONE(zone);
 		if (notify) {
 			zone_notify(zone, &now);
 		}