diff options
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/devio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext2fs/devio.c b/ext2fs/devio.c index e3e9b6ec..3e12f911 100644 --- a/ext2fs/devio.c +++ b/ext2fs/devio.c @@ -28,8 +28,7 @@ error_t dev_write_sync (daddr_t addr, vm_address_t data, long len) { int written; - if (diskfs_readonly) - return EROFS; + assert (!diskfs_readonly); if (device_write (device_port, 0, addr, (io_buf_ptr_t) data, len, &written) || written != len) return EIO; |