diff options
author | Winter Wang <wente.wang@nxp.com> | 2016-11-16 10:30:40 +0800 |
---|---|---|
committer | Winter Wang <wente.wang@nxp.com> | 2016-11-16 18:26:51 +0800 |
commit | 7f652587219cf14755c07c35e9271b45f150b518 (patch) | |
tree | e6aeebef35f947a9d60201047f89e8f55abd45ee /drivers/usb | |
parent | 1f5007c3c4a6152e9e5118969f1b6fa8abaee551 (diff) | |
download | u-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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/f_fastboot.c | 4 |
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 |