mirror of https://gitee.com/openkylin/qemu.git
atapi: Move comment to proper place
Move misplaced comment for media_is_dvd() Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
e80fec7feb
commit
a7acf552e2
|
@ -71,12 +71,12 @@ static void lba_to_msf(uint8_t *buf, int lba)
|
|||
buf[2] = lba % 75;
|
||||
}
|
||||
|
||||
/* XXX: DVDs that could fit on a CD will be reported as a CD */
|
||||
static inline int media_present(IDEState *s)
|
||||
{
|
||||
return (s->nb_sectors > 0);
|
||||
}
|
||||
|
||||
/* XXX: DVDs that could fit on a CD will be reported as a CD */
|
||||
static inline int media_is_dvd(IDEState *s)
|
||||
{
|
||||
return (media_present(s) && s->nb_sectors > CD_MAX_SECTORS);
|
||||
|
|
Loading…
Reference in New Issue