]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:dbwrap_watch: remove unused dbwrap_watched_do_locked_state.status
authorStefan Metzmacher <metze@samba.org>
Sun, 26 Jun 2022 12:57:06 +0000 (12:57 +0000)
committerRalph Boehme <slow@samba.org>
Tue, 26 Jul 2022 13:40:34 +0000 (13:40 +0000)
This is never set...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/dbwrap/dbwrap_watch.c

index 88945f6ccc47b380cfdc79f67d7df05192e8a879..9d3e44a2728093656a9f06b26bc09e7b13a864bb 100644 (file)
@@ -383,7 +383,6 @@ struct dbwrap_watched_do_locked_state {
                   TDB_DATA value,
                   void *private_data);
        void *private_data;
-       NTSTATUS status;
 };
 
 static void dbwrap_watched_do_locked_fn(
@@ -427,10 +426,9 @@ static NTSTATUS dbwrap_watched_do_locked(struct db_context *db, TDB_DATA key,
                return status;
        }
 
-       DBG_DEBUG("dbwrap_watched_do_locked_fn returned %s\n",
-                 nt_errstr(state.status));
+       DBG_DEBUG("dbwrap_watched_do_locked_fn returned\n");
 
-       return state.status;
+       return NT_STATUS_OK;
 }
 
 static void dbwrap_watched_record_wakeup(