From 5f81e36af41feb6f0fb25cdaa79656f374d226b8 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Fri, 20 Nov 2009 16:41:50 +0900 Subject: [PATCH] usbd: fix the comments Signed-off-by: Minkyu Kang --- common/cmd_usbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/cmd_usbd.c b/common/cmd_usbd.c index c4480d8..c47a2aa 100644 --- a/common/cmd_usbd.c +++ b/common/cmd_usbd.c @@ -717,7 +717,7 @@ static int process_data(struct usbd_ops *usbd) switch (part_id) { case BOOT_PART_ID: #if defined(CONFIG_ENV_IS_IN_NAND) || defined(CONFIG_ENV_IS_IN_ONENAND) - /* Erase Environment */ + /* Erase the environment also when write bootloader */ { int param_id; param_id = get_part_id("params", 1); @@ -732,6 +732,7 @@ static int process_data(struct usbd_ops *usbd) nand_cmd(0, offset, length, NULL); } #endif + /* Fall through for write bootloader */ case KERNEL_PART_ID: sprintf(offset, "%x", parts[part_id]->offset); sprintf(length, "%x", parts[part_id]->size); -- 2.7.4