summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinter Wang <wente.wang@nxp.com>2016-11-16 10:30:40 +0800
committerWinter Wang <wente.wang@nxp.com>2016-11-16 18:26:51 +0800
commit7f652587219cf14755c07c35e9271b45f150b518 (patch)
treee6aeebef35f947a9d60201047f89e8f55abd45ee
parent1f5007c3c4a6152e9e5118969f1b6fa8abaee551 (diff)
downloadu-boot-imx-7f652587219cf14755c07c35e9271b45f150b518.zip
u-boot-imx-7f652587219cf14755c07c35e9271b45f150b518.tar.gz
u-boot-imx-7f652587219cf14755c07c35e9271b45f150b518.tar.bz2
MA-9015 fastboot: fix fastboot unlock return fail
if device has no avbkey partition, rbk idx erase fails in 'fastboot unlock', host will get FAIL although unlock is already done. do not check the rbk idx erase's return Signed-off-by: Winter Wang <wente.wang@nxp.com>
-rw-r--r--drivers/usb/gadget/f_fastboot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 4e6cc74..26af6b5 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -2863,9 +2863,7 @@ static int do_fastboot_unlock(void)
#ifdef CONFIG_AVB_SUPPORT
printf("Start stored_rollback_index wipe process....\n");
- status = rbkidx_erase(FASTBOOT_PARTITION_AVBKEY);
- if (status < 0)
- return status;
+ rbkidx_erase(FASTBOOT_PARTITION_AVBKEY);
printf("Wipe stored_rollback_index completed.\n");
#endif