From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHDQS-0001EN-45 for qemu-devel@nongnu.org; Tue, 03 May 2011 07:05:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHDQQ-0005Oo-HK for qemu-devel@nongnu.org; Tue, 03 May 2011 07:05:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHDQQ-0005OY-8x for qemu-devel@nongnu.org; Tue, 03 May 2011 07:05:54 -0400 From: Kevin Wolf Date: Tue, 3 May 2011 13:08:22 +0200 Message-Id: <1304420906-5776-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1304420906-5776-1-git-send-email-kwolf@redhat.com> References: <1304420906-5776-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 2/6] atapi: Move comment to proper place List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Amit Shah Move misplaced comment for media_is_dvd() Signed-off-by: Amit Shah Signed-off-by: Kevin Wolf --- 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