Skip to content

Commit

Permalink
Remove debug asserts in write path
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Sep 21, 2023
1 parent d8a13ea commit 4e1e284
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions module/os/windows/zfs/zfs_vnops_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -5298,13 +5298,11 @@ fs_write(PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STACK_LOCATION IrpSp)

if (fileObject == NULL) {
dprintf("fileObject == NULL\n");
ASSERT0("fileObject == NULL");
return (SET_ERROR(STATUS_INVALID_PARAMETER));
}

if (fileObject->FsContext == NULL) {
dprintf("FsContext == NULL\n");
ASSERT0("FsContext == NULL");
return (SET_ERROR(STATUS_INVALID_PARAMETER));
}

Expand All @@ -5313,13 +5311,11 @@ fs_write(PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STACK_LOCATION IrpSp)

if (zccb == NULL) {
dprintf("zccb == NULL\n");
ASSERT0("zccb == NULL");
return (SET_ERROR(STATUS_INVALID_PARAMETER));
}

if (VTOZ(vp) == NULL) {
dprintf("zp == NULL\n");
ASSERT0("zp == NULL");
return (SET_ERROR(STATUS_INVALID_PARAMETER));
}

Expand Down

0 comments on commit 4e1e284

Please sign in to comment.