From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qc0-f177.google.com ([209.85.216.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TMPj6-0005Q6-9w for barebox@lists.infradead.org; Thu, 11 Oct 2012 20:51:28 +0000 Received: by mail-qc0-f177.google.com with SMTP id u28so1827498qcs.36 for ; Thu, 11 Oct 2012 13:51:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1349987291-11714-2-git-send-email-franck.jullien@gmail.com> References: <1349987291-11714-1-git-send-email-franck.jullien@gmail.com> <1349987291-11714-2-git-send-email-franck.jullien@gmail.com> Date: Thu, 11 Oct 2012 22:44:43 +0200 Message-ID: From: Franck Jullien List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/2] common/partitions.c: make use of is_fat_or_mbr To: barebox@lists.infradead.org 2012/10/11 Franck Jullien : > Signed-off-by: Franck Jullien > --- > common/partitions.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/common/partitions.c b/common/partitions.c > index 0e42937..85bca32 100644 > --- a/common/partitions.c > +++ b/common/partitions.c > @@ -28,6 +28,7 @@ > #include > #include > #include > +#include > > struct partition { > uint64_t first_sec; > @@ -85,7 +86,7 @@ static void __maybe_unused try_dos_partition(struct block_device *blk, > goto on_error; > } > > - if ((buffer[510] != 0x55) || (buffer[511] != 0xAA)) { > + if(is_fat_or_mbr(buffer, NULL) != filetype_mbr) { Please put a space after "if" :) I resend.... > dev_info(blk->dev, "No partition table found\n"); > goto on_error; > } > -- > 1.7.1 > _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox