tvafe: add Variable initialization
authorNian Jing <nian.jing@amlogic.com>
Tue, 21 Aug 2018 02:10:31 +0000 (10:10 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 22 Aug 2018 10:24:52 +0000 (03:24 -0700)
PD#172153: fix complie error for some GCC version

Change-Id: I0f09bf4097dfea278c63d69e789ee99b016e84b2
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
drivers/amlogic/media/vin/tvin/tvafe/tvafe_cvd.c

index c8b38cb..842c80d 100644 (file)
@@ -2202,7 +2202,8 @@ inline void tvafe_cvd2_adj_hs(struct tvafe_cvd2_s *cvd2,
                        unsigned int hcnt64)
 {
        unsigned int hcnt64_max, hcnt64_min, temp, delta;
-       unsigned int diff, hcnt64_ave, i, hcnt64_standard;
+       unsigned int diff, hcnt64_ave, i;
+       unsigned int hcnt64_standard = 0;
 
        if (tvafe_cpu_type() >= CPU_TYPE_GXTVBB) {
                if (cvd2->config_fmt == TVIN_SIG_FMT_CVBS_PAL_I)