From baecfe86794653d02eb56d4dd0996789dcf086c5 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Wed, 19 Jan 2011 20:40:54 +0900 Subject: [PATCH] usbd: don't return the error at get_part_info Signed-off-by: Minkyu Kang --- common/cmd_usbd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/cmd_usbd.c b/common/cmd_usbd.c index 3900260..822f4e4 100644 --- a/common/cmd_usbd.c +++ b/common/cmd_usbd.c @@ -139,8 +139,12 @@ static int get_part_id(char *name) #else static int get_part_info(void) { +#ifdef CONFIG_CMD_MBR + return 0; +#else printf("Error: Can't get patition information\n"); return -EINVAL; +#endif } static int get_part_id(char *name) -- 2.7.4