]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Save a few lines in smbXsrv_client_global_init()
authorVolker Lendecke <vl@samba.org>
Fri, 9 Feb 2024 17:16:26 +0000 (18:16 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 30 Apr 2024 22:44:32 +0000 (22:44 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smbXsrv_client.c

index c05ca235a5104b871f9865b7f57d8d37a323f53d..aece7c0d8aaa1469c5ca28bcc1ea6efa4f138de1 100644 (file)
@@ -81,10 +81,7 @@ NTSTATUS smbXsrv_client_global_init(void)
                          DBWRAP_FLAG_NONE);
        TALLOC_FREE(global_path);
        if (backend == NULL) {
-               NTSTATUS status;
-
-               status = map_nt_error_from_unix_common(errno);
-
+               NTSTATUS status = map_nt_error_from_unix_common(errno);
                return status;
        }