Patchwork [1/2] atapi: Move comment to proper place

login
register
mail settings
Submitter Amit Shah
Date April 28, 2011, 2:34 p.m.
Message ID <c7f75a889c88370dd6241ab4b7670e23c69bfdc7.1304001278.git.amit.shah@redhat.com>
Download mbox | patch
Permalink /patch/93229/
State New
Headers show

Comments

Amit Shah - April 28, 2011, 2:34 p.m.
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(-)
Kevin Wolf - April 29, 2011, 10:57 a.m.
Am 28.04.2011 16:34, schrieb Amit Shah:
> Move misplaced comment for media_is_dvd()
> 
> Signed-off-by: Amit Shah <amit.shah@redhat.com>

Thanks, applied both to the block branch.

Kevin

Patch

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);