From: Amit Shah Date: Thu, 28 Apr 2011 14:34:40 +0000 (+0530) Subject: atapi: Move comment to proper place X-Git-Tag: v0.15.0-rc0~310 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7acf552e2cfb42ea1b27966b7f318eca2cc478a;p=thirdparty%2Fqemu.git atapi: Move comment to proper place Move misplaced comment for media_is_dvd() Signed-off-by: Amit Shah Signed-off-by: Kevin Wolf --- diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index 690a0abdda3..86b18d894cd 100644 --- a/hw/ide/atapi.c +++ b/hw/ide/atapi.c @@ -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);