From: Volker Lendecke Date: Sun, 22 Dec 2019 17:20:12 +0000 (+0100) Subject: smbd: Remove an unused parameter from defer_open() X-Git-Tag: ldb-2.1.0~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d0ffcf30e625e7570daa800cf5adf3113c99ce5;p=thirdparty%2Fsamba.git smbd: Remove an unused parameter from defer_open() Signed-off-by: Volker Lendecke Reviewed-by: David Disseldorp Autobuild-User(master): David Disseldorp Autobuild-Date(master): Fri Jan 3 01:30:24 UTC 2020 on sn-devel-184 --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 57e68cab41d..a012e33316f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2673,7 +2673,6 @@ static void defer_open_done(struct tevent_req *req); static void defer_open(struct share_mode_lock *lck, struct timeval timeout, struct smb_request *req, - bool delayed_for_oplocks, struct file_id id) { struct deferred_open_record *open_rec = NULL; @@ -2687,11 +2686,10 @@ static void defer_open(struct share_mode_lock *lck, abs_timeout = timeval_sum(&req->request_time, &timeout); DBG_DEBUG("request time [%s] timeout [%s] mid [%" PRIu64 "] " - "delayed_for_oplocks [%s] file_id [%s]\n", + "file_id [%s]\n", timeval_str_buf(&req->request_time, false, true, &tvbuf1), timeval_str_buf(&abs_timeout, false, true, &tvbuf2), req->mid, - delayed_for_oplocks ? "yes" : "no", file_id_str_buf(id, &fbuf)); open_rec = talloc_zero(NULL, struct deferred_open_record); @@ -2980,7 +2978,7 @@ static void schedule_defer_open(struct share_mode_lock *lck, return; } - defer_open(lck, timeout, req, true, id); + defer_open(lck, timeout, req, id); } /****************************************************************************