di: clean up deadcode in flm
authorKeLe Bai <kele.bai@amlogic.com>
Wed, 6 Sep 2017 09:25:56 +0000 (17:25 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 13 Sep 2017 05:22:25 +0000 (22:22 -0700)
PD#150460: driver defect clean up
#57

Change-Id: I91f65ecadb8799971503fa26e1e58a557d54516e
Signed-off-by: KeLe Bai <kele.bai@amlogic.com>
drivers/amlogic/media/deinterlace/flm_mod_xx.c

index 8a6b258..db09e1b 100644 (file)
@@ -311,7 +311,7 @@ int FlmModsDet(struct sFlmDatSt *pRDat, int nDif01, int nDif02)
                                        aXMI02[tT3] = aXId02[tT3];
                                        nT4 += (16 - aMax02[tT3]);
                                }
-                               nT4 /= nLen1;
+                               nT4 /= nLen2;
                                tModLvl -= nT4;
                        } else {
                                nLen2 = -nMxMn[tT0][1];