From: Minkyu Kang Date: Fri, 20 Nov 2009 07:41:50 +0000 (+0900) Subject: usbd: fix the comments X-Git-Tag: CES1223_2~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f81e36af41feb6f0fb25cdaa79656f374d226b8;p=kernel%2Fu-boot.git usbd: fix the comments Signed-off-by: Minkyu Kang --- 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);