viu: null point check
authorDezhi Kong <dezhi.kong@amlogic.com>
Thu, 7 Sep 2017 01:10:47 +0000 (09:10 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 14 Sep 2017 10:44:32 +0000 (03:44 -0700)
PD#150474: viu: null point check

driver defect clean up:
#95

Change-Id: I29daf5b12927c7f6227c332d0064d2e437099a8c
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
drivers/amlogic/media/vin/tvin/viu/viuin.c

index aad132c..cfb8d70 100644 (file)
@@ -246,9 +246,6 @@ static int viuin_isr(struct tvin_frontend_s *fe, unsigned int hcnt64)
 
        struct viuin_s *devp = container_of(fe, struct viuin_s, frontend);
 
-       if (!devp)
-               return -ENODEV;
-
        curr_port = rd_bits_viu(VPU_VIU_VENC_MUX_CTRL, 0, 2);
 
        vsync_enter_line_curr = (rd_viu(devp->enc_info_addr)>>16)&0x1fff;