]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/scsi/scsi-generic.c
bootindex: move calling add_boot_device_patch to bootindex setter function
[mirror_qemu.git] / hw / scsi / scsi-generic.c
index 03b980c44d69089ace4f8f69f7279d2a5112379c..84a1d5bfe30ebbb58ea54ff5d68d5f32e3f10e3c 100644 (file)
@@ -413,9 +413,6 @@ static void scsi_generic_realize(SCSIDevice *s, Error **errp)
     /* define device state */
     s->type = scsiid.scsi_type;
     DPRINTF("device type %d\n", s->type);
-    if (s->type == TYPE_DISK || s->type == TYPE_ROM) {
-        add_boot_device_path(s->conf.bootindex, &s->qdev, NULL);
-    }
 
     switch (s->type) {
     case TYPE_TAPE: