vfs_default: remove unused checks which are already caught by vfs_offload_token_check...
authorStefan Metzmacher <metze@samba.org>
Wed, 23 May 2018 09:37:52 +0000 (11:37 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:18 +0000 (08:59 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_default.c

index 82afb054a1370a1b2fcbd55d182f098cd6990049..58df47ee6b4cf87f9e487a9e154244b016361851 100644 (file)
@@ -1700,16 +1700,6 @@ static struct tevent_req *vfswrap_offload_write_send(
                return tevent_req_post(req, ev);
        }
 
-       if (src_fsp->op == NULL) {
-               tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);
-               return tevent_req_post(req, ev);
-       }
-
-       if (dest_fsp->op == NULL) {
-               tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);
-               return tevent_req_post(req, ev);
-       }
-
        status = vfswrap_offload_write_loop(req);
        if (!NT_STATUS_IS_OK(status)) {
                tevent_req_nterror(req, status);