From: Naphtali Sprei Date: Thu, 11 Mar 2010 14:44:34 +0000 (+0200) Subject: read-only: Another minor cleanup X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~8404 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0056dcc1146545e7c814db83b7b7b62e0c93ac68;p=sdk%2Femulator%2Fqemu.git read-only: Another minor cleanup Don't rely on CDROM hint for read_only attribute Signed-off-by: Naphtali Sprei Signed-off-by: Anthony Liguori --- diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index e64fbf1..1fbd4ee 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;