[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] atapi: Move comment to proper place
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 2/6] atapi: Move comment to proper place |
Date: |
Tue, 3 May 2011 13:08:22 +0200 |
From: Amit Shah <address@hidden>
Move misplaced comment for media_is_dvd()
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
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.2.3
- [Qemu-devel] [PULL 0/6] Block patches, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 1/6] qemu-img resize: Fix option parsing, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 2/6] atapi: Move comment to proper place,
Kevin Wolf <=
- [Qemu-devel] [PATCH 3/6] atapi: Explain why we need a 'media not present' state, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 5/6] qemu-progress.c: printf isn't signal safe, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 4/6] ide/atapi: fix set but unused, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 6/6] NBD: Avoid leaking a couple of strings when the NBD device is closed, Kevin Wolf, 2011/05/03
- Re: [Qemu-devel] [PULL 0/6] Block patches, Anthony Liguori, 2011/05/03