diff --git a/drivers/filesystems/ext2/src/dirctl.c b/drivers/filesystems/ext2/src/dirctl.c index 668b9c23f66..dfeda7b91bb 100644 --- a/drivers/filesystems/ext2/src/dirctl.c +++ b/drivers/filesystems/ext2/src/dirctl.c @@ -968,7 +968,6 @@ ProcessNextEntry: errorout: ((PULONG)((PUCHAR)Buffer + fc.efc_prev))[0] = 0; - FileIndex = ByteOffset; if (Status == STATUS_BUFFER_OVERFLOW) { /* just return fc.efc_start/EntrySize bytes that we filled */