]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Remove an unnecessary if statement
authorVolker Lendecke <vl@samba.org>
Wed, 30 Nov 2022 14:14:08 +0000 (15:14 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 12 Dec 2022 21:16:33 +0000 (21:16 +0000)
get_local_machine_name() already does exactly this

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_virusfilter_utils.c

index b8b44eb203b9be6bd1dc2a67c851d03d75f85122..a673894e3998c69abb79ea1bf529bd77979d26bc 100644 (file)
@@ -956,10 +956,6 @@ int virusfilter_shell_set_conn_env(
        fstring pidstr;
        int ret;
 
-       if (local_machine_name == NULL || *local_machine_name == '\0') {
-               local_machine_name = lp_netbios_name();
-       }
-
        server_addr_p = tsocket_address_inet_addr_string(
                                conn->sconn->local_address, talloc_tos());