diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/scsi-disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index e64fbf11dd..1fbd4ee1bb 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -613,8 +613,7 @@ static int scsi_disk_emulate_mode_sense(SCSIRequest *req, uint8_t *outbuf) p[1] = 0; /* Default media type. */ p[3] = 0; /* Block descriptor length. */ - if (bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM || - bdrv_is_read_only(s->bs)) { + if (bdrv_is_read_only(s->bs)) { p[2] = 0x80; /* Readonly. */ } p += 4; |