From: Stefan Metzmacher Date: Sun, 26 Jun 2022 12:57:06 +0000 (+0000) Subject: s3:dbwrap_watch: remove unused dbwrap_watched_do_locked_state.status X-Git-Tag: ldb-2.6.1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2129d352ae0d90867ebe8101529817a12223d5ee;p=thirdparty%2Fsamba.git s3:dbwrap_watch: remove unused dbwrap_watched_do_locked_state.status This is never set... BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index 88945f6ccc4..9d3e44a2728 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -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(