diff options
Diffstat (limited to 'lib/libdisk/write_i386_disk.c')
-rw-r--r-- | lib/libdisk/write_i386_disk.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libdisk/write_i386_disk.c b/lib/libdisk/write_i386_disk.c index ad788a2..6922776 100644 --- a/lib/libdisk/write_i386_disk.c +++ b/lib/libdisk/write_i386_disk.c @@ -98,12 +98,8 @@ Write_Disk(const struct disk *d1) fd = open(device,O_RDWR); - if (fd < 0) { -#ifdef DEBUG - warn("open(%s) failed", device); -#endif + if (fd < 0) return 1; - } memset(s,0,sizeof s); mbr = read_block(fd, 0, d1->sector_size); |