smbd: sconn->sys_notify_ctx is not used
authorVolker Lendecke <vl@samba.org>
Wed, 15 Jun 2016 08:21:48 +0000 (10:21 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 20 Jul 2016 03:21:06 +0000 (05:21 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/globals.h
source3/smbd/service.c

index 02665336c26fc2031256a180d4d4ade490ca2546..8ba564d0e9f4c130bb515bc01deaa2d751e94d1a 100644 (file)
@@ -860,7 +860,6 @@ struct smbd_server_connection {
        const char *remote_hostname;
        struct tevent_context *ev_ctx;
        struct messaging_context *msg_ctx;
-       struct sys_notify_context *sys_notify_ctx;
        struct notify_context *notify_ctx;
        bool using_smb2;
        int trans_num;
index 34cc369ce19f2266010101dd0f293f5feb4f47a9..46bb226ecdfbd2addb6cec2b9d26d025f548f4d3 100644 (file)
@@ -697,10 +697,6 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
                                MSG_SMB_NOTIFY_CANCEL_DELETED,
                                smbd_notify_cancel_deleted);
                }
-               if (sconn->sys_notify_ctx == NULL) {
-                       sconn->sys_notify_ctx = sys_notify_context_create(
-                               sconn, sconn->ev_ctx);
-               }
        }
 
        if (lp_kernel_oplocks(snum)) {