From patchwork Thu Apr 28 14:34:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 93229 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 70E0FB6EF3 for ; Fri, 29 Apr 2011 00:35:02 +1000 (EST) Received: from localhost ([::1]:40800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFSJ1-00030J-MH for incoming@patchwork.ozlabs.org; Thu, 28 Apr 2011 10:34:59 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFSIu-000308-N9 for qemu-devel@nongnu.org; Thu, 28 Apr 2011 10:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFSIt-0008BQ-LX for qemu-devel@nongnu.org; Thu, 28 Apr 2011 10:34:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFSIt-0008BK-Br for qemu-devel@nongnu.org; Thu, 28 Apr 2011 10:34:51 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3SEYodb004945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 28 Apr 2011 10:34:50 -0400 Received: from localhost (ovpn-113-128.phx2.redhat.com [10.3.113.128]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3SEYlCm022772; Thu, 28 Apr 2011 10:34:49 -0400 From: Amit Shah To: Kevin Wolf Date: Thu, 28 Apr 2011 20:04:40 +0530 Message-Id: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Amit Shah , qemu list Subject: [Qemu-devel] [PATCH 1/2] atapi: Move comment to proper place X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Move misplaced comment for media_is_dvd() Signed-off-by: Amit Shah --- 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);