diff options
Diffstat (limited to 'src/ramdisk.c')
-rw-r--r-- | src/ramdisk.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ramdisk.c b/src/ramdisk.c index 641d87e..0164840 100644 --- a/src/ramdisk.c +++ b/src/ramdisk.c @@ -11,12 +11,6 @@ #include "bregs.h" // struct bregs void -describe_ramdisk(struct drive_s *drive_g) -{ - printf("%s", drive_g->model); -} - -void ramdisk_setup(void) { if (!CONFIG_COREBOOT_FLASH || !CONFIG_FLASH_FLOPPY) @@ -48,8 +42,8 @@ ramdisk_setup(void) // Setup driver. dprintf(1, "Mapping CBFS floppy %s to addr %p\n", cbfs_filename(file), pos); struct drive_s *drive_g = addFloppy((u32)pos, ftype, DTYPE_RAMDISK); - if (drive_g) - strtcpy(drive_g->model, cbfs_filename(file), ARRAY_SIZE(drive_g->model)); + if (!drive_g) + strtcpy(drive_g->desc, cbfs_filename(file), MAXDESCSIZE); } static int |