summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-20 14:14:16 +0000
committerMiles Bader <miles@gnu.org>1995-04-20 14:14:16 +0000
commit5e9eb09cf128c50ce1b6427605979ad971c0f027 (patch)
tree0552de17b10f3dfcdcc205bfc31596bc005a6bfa /ext2fs
parentf5a1c4b306cef8169ef4d06b13f35c1aae707d98 (diff)
Formerly devio.c.~6~
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/devio.c3
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;