]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Save 3 lines
authorVolker Lendecke <vl@samba.org>
Fri, 9 Feb 2024 11:47:48 +0000 (12:47 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 Apr 2024 22:52:38 +0000 (22:52 +0000)
Just cosmetic

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/smbXsrv_open.c

index efabb73dbd0cf67e9bbaaf4420d6ebb1fd5e2536..f2a6fc27784a4ef409066f5b861ca200925bf7b4 100644 (file)
@@ -74,10 +74,7 @@ NTSTATUS smbXsrv_open_global_init(void)
                         DBWRAP_FLAG_NONE);
        TALLOC_FREE(global_path);
        if (db_ctx == NULL) {
-               NTSTATUS status;
-
-               status = map_nt_error_from_unix_common(errno);
-
+               NTSTATUS status = map_nt_error_from_unix_common(errno);
                return status;
        }