aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/ubd_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/ubd_kern.c')
-rw-r--r--arch/um/drivers/ubd_kern.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 5856a02fff58..c3e205b6a4c9 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -637,14 +637,10 @@ static int ubd_new_disk(int major, u64 size, int unit,
637 disk->first_minor = unit << UBD_SHIFT; 637 disk->first_minor = unit << UBD_SHIFT;
638 disk->fops = &ubd_blops; 638 disk->fops = &ubd_blops;
639 set_capacity(disk, size / 512); 639 set_capacity(disk, size / 512);
640 if(major == MAJOR_NR){ 640 if(major == MAJOR_NR)
641 sprintf(disk->disk_name, "ubd%c", 'a' + unit); 641 sprintf(disk->disk_name, "ubd%c", 'a' + unit);
642 sprintf(disk->devfs_name, "ubd/disc%d", unit); 642 else
643 }
644 else {
645 sprintf(disk->disk_name, "ubd_fake%d", unit); 643 sprintf(disk->disk_name, "ubd_fake%d", unit);
646 sprintf(disk->devfs_name, "ubd_fake/disc%d", unit);
647 }
648 644
649 /* sysfs register (not for ide fake devices) */ 645 /* sysfs register (not for ide fake devices) */
650 if (major == MAJOR_NR) { 646 if (major == MAJOR_NR) {