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:
parent
c571b46d59
commit
bcec45798d
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue