From: Sonic Zhang <sonic.zh...@analog.com>

- Should return 0 for both DOS_MBR and DOS_PBR block types in test_part_dos().

Signed-off-by: Sonic Zhang <sonic.zh...@analog.com>

---
 disk/part_dos.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/disk/part_dos.c b/disk/part_dos.c
index 3fe901b..98f82ca 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -98,7 +98,7 @@ int test_part_dos (block_dev_desc_t *dev_desc)
        if (dev_desc->block_read(dev_desc->dev, 0, 1, (ulong *) buffer) != 1)
                return -1;
 
-       if (test_block_type(buffer) != DOS_MBR)
+       if (test_block_type(buffer) < 0)
                return -1;
 
        return 0;
-- 
1.7.0.4


_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to