All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] atapi: Move comment to proper place
@ 2011-04-28 14:34 Amit Shah
  2011-04-28 14:34 ` [Qemu-devel] [PATCH 2/2] atapi: Explain why we need a 'media not present' state Amit Shah
  2011-04-29 10:57 ` [Qemu-devel] [PATCH 1/2] atapi: Move comment to proper place Kevin Wolf
  0 siblings, 2 replies; 3+ messages in thread
From: Amit Shah @ 2011-04-28 14:34 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: Amit Shah, qemu list

Move misplaced comment for media_is_dvd()

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 hw/ide/atapi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 690a0ab..86b18d8 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);
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-29 10:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-28 14:34 [Qemu-devel] [PATCH 1/2] atapi: Move comment to proper place Amit Shah
2011-04-28 14:34 ` [Qemu-devel] [PATCH 2/2] atapi: Explain why we need a 'media not present' state Amit Shah
2011-04-29 10:57 ` [Qemu-devel] [PATCH 1/2] atapi: Move comment to proper place Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.