fastboot: add missing brace in cb_flash()
In the function cb_flash, we call avb_read_flash_lock_state in the conditional judgement, but we do not add brackets after the return.This cause the fastboot can not work well. Change-Id: Ib9bbd367d25bdc3e93e6db4444896caa114382a7 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
parent
82ee22d4d3
commit
ef52a073f0
|
|
@ -779,9 +779,11 @@ static void cb_flash(struct usb_ep *ep, struct usb_request *req)
|
|||
#ifdef CONFIG_AVB_LIBAVB_USER
|
||||
uint8_t flash_lock_state;
|
||||
|
||||
if (avb_read_flash_lock_state(&flash_lock_state))
|
||||
if (avb_read_flash_lock_state(&flash_lock_state)) {
|
||||
fastboot_tx_write_str("FAIL");
|
||||
return;
|
||||
}
|
||||
|
||||
if (flash_lock_state == 0) {
|
||||
fastboot_tx_write_str("FAILThe device is locked, can not flash!");
|
||||
printf("The device is locked, can not flash!\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue