usbd: fix the comments
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 20 Nov 2009 07:41:50 +0000 (16:41 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 20 Nov 2009 07:41:50 +0000 (16:41 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
common/cmd_usbd.c

index c4480d8..c47a2aa 100644 (file)
@@ -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);