From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Tue, 7 Mar 2023 12:13:05 -0500 Subject: [Cluster-devel] [PATCHv2 dlm-tool 7/9] dlm_controld: use write_result() In-Reply-To: <20230307171307.2785162-1-aahringo@redhat.com> References: <20230307171307.2785162-1-aahringo@redhat.com> Message-ID: <20230307171307.2785162-8-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch will use write_result() instead of code the same code again what write_result() is doing. Reported-by: Andreas Gruenbacher --- dlm_controld/plock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlm_controld/plock.c b/dlm_controld/plock.c index 2f0392c3..24ad777a 100644 --- a/dlm_controld/plock.c +++ b/dlm_controld/plock.c @@ -1600,8 +1600,7 @@ void process_plocks(int ci) #else if (!(info.flags & DLM_PLOCK_FL_CLOSE)) { #endif - info.rv = rv; - rv = write(plock_device_fd, &info, sizeof(info)); + write_result(&info, rv); } } -- 2.31.1