rockchip: board: Do not set unvalid index to rollback-index

Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I2ba9c666c8375e02569518db9604d214c2a23b53
This commit is contained in:
Zain Wang 2020-12-28 15:10:23 +08:00
parent c571b46d59
commit bcec45798d
1 changed files with 2 additions and 2 deletions

View File

@ -882,9 +882,9 @@ int fit_read_otp_rollback_index(uint32_t fit_index, uint32_t *otp_index)
*otp_index = fit_index; *otp_index = fit_index;
printf("Initial otp index as %d\n", fit_index); printf("Initial otp index as %d\n", fit_index);
} } else {
*otp_index = index; *otp_index = index;
}
#else #else
*otp_index = 0; *otp_index = 0;
#endif #endif