From: Stefan Metzmacher Date: Wed, 23 May 2018 09:37:52 +0000 (+0200) Subject: vfs_btrfs: remove unused checks which are already caught by vfs_offload_token_check_h... X-Git-Tag: tevent-0.9.37~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac91e487db935d508eb22cc81702c74029a5ad4;p=thirdparty%2Fsamba.git vfs_btrfs: remove unused checks which are already caught by vfs_offload_token_check_handles() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_btrfs.c b/source3/modules/vfs_btrfs.c index 775e5f07611..4c07ebd36ec 100644 --- a/source3/modules/vfs_btrfs.c +++ b/source3/modules/vfs_btrfs.c @@ -298,11 +298,6 @@ static struct tevent_req *btrfs_offload_write_send(struct vfs_handle_struct *han return tevent_req_post(req, ev); } - if (src_fsp->op == NULL || dest_fsp->op == NULL) { - tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR); - return tevent_req_post(req, ev); - } - if (do_locking) { init_strict_lock_struct(src_fsp, src_fsp->op->global->open_persistent_id,