vendorcode/mediatek/mt8195: More sure ucDoneFlg is initialized

One some codepaths ucDoneFlg is not initialized. This fixes a clang
warning.

Change-Id: I78aa2c711626b24f003f5c95b1c9598eaff7cb1b
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74552
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Arthur Heymans 2023-04-19 10:13:44 +02:00 committed by Lean Sheng Tan
parent a66b469107
commit 9781411719
1 changed files with 1 additions and 1 deletions

View File

@ -3066,7 +3066,7 @@ DRAM_STATUS_T DramcWriteLeveling(DRAMC_CTX_T *p, u8 isAutoK, WLEV_DELAY_BASED_T
//U8 *uiLPDDR_O1_Mapping = NULL; //U8 *uiLPDDR_O1_Mapping = NULL;
//U32 u4value = 0, u4dq_o1 = 0 u4value1 = 0, u4dq_o1_tmp[DQS_BYTE_NUMBER]; //U32 u4value = 0, u4dq_o1 = 0 u4value1 = 0, u4dq_o1_tmp[DQS_BYTE_NUMBER];
U8 byte_i, rank_i, ucDoneFlg; U8 byte_i, rank_i, ucDoneFlg = 0;
//S32 iDelay, ClockDelayMax; //S32 iDelay, ClockDelayMax;
//U8 ucStatus[DQS_BYTE_NUMBER], ucdq_o1[DQS_BYTE_NUMBER], ucdq_o1_shift[DQS_BYTE_NUMBER] //U8 ucStatus[DQS_BYTE_NUMBER], ucdq_o1[DQS_BYTE_NUMBER], ucdq_o1_shift[DQS_BYTE_NUMBER]
//U8 ucHW_cmp_raw_data, uccmp_result[DQS_BYTE_NUMBER]; //U8 ucHW_cmp_raw_data, uccmp_result[DQS_BYTE_NUMBER];