s3:smbd: remove now unused check if fsp is NULL
[amitay/samba.git] / source3 / smbd / aio.c
index ffa2a683b46acae7f5989fc1ca55a2645c2c5569..29723d23fa52ad0ef4192f734f8ce8b0a72c8314 100644 (file)
@@ -750,14 +750,6 @@ static void aio_pread_smb2_done(struct tevent_req *req)
        DEBUG(10, ("pread_recv returned %d, err = %s\n", (int)nread,
                   (nread == -1) ? strerror(vfs_aio_state.error) : "no error"));
 
-       if (fsp == NULL) {
-               DEBUG(3, ("%s: request cancelled (mid[%ju])\n",
-                         __func__, (uintmax_t)aio_ex->smbreq->mid));
-               TALLOC_FREE(aio_ex);
-               tevent_req_nterror(subreq, NT_STATUS_INTERNAL_ERROR);
-               return;
-       }
-
        /* Common error or success code processing for async or sync
           read returns. */
 
@@ -913,14 +905,6 @@ static void aio_pwrite_smb2_done(struct tevent_req *req)
        DEBUG(10, ("pwrite_recv returned %d, err = %s\n", (int)nwritten,
                   (nwritten == -1) ? strerror(err) : "no error"));
 
-       if (fsp == NULL) {
-               DEBUG(3, ("%s: request cancelled (mid[%ju])\n",
-                         __func__, (uintmax_t)aio_ex->smbreq->mid));
-               TALLOC_FREE(aio_ex);
-               tevent_req_nterror(subreq, NT_STATUS_INTERNAL_ERROR);
-               return;
-       }
-
        mark_file_modified(fsp);
 
         status = smb2_write_complete_nosync(subreq, nwritten, err);