From: Dezhi Kong Date: Thu, 7 Sep 2017 01:10:47 +0000 (+0800) Subject: viu: null point check X-Git-Tag: khadas-vims-v0.9.6-release~2842 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b43197d58916bba2b2d25fc882c85ffc4f9d726;p=platform%2Fkernel%2Flinux-amlogic.git viu: null point check PD#150474: viu: null point check driver defect clean up: #95 Change-Id: I29daf5b12927c7f6227c332d0064d2e437099a8c Signed-off-by: Dezhi Kong --- diff --git a/drivers/amlogic/media/vin/tvin/viu/viuin.c b/drivers/amlogic/media/vin/tvin/viu/viuin.c index aad132c..cfb8d70 100644 --- a/drivers/amlogic/media/vin/tvin/viu/viuin.c +++ b/drivers/amlogic/media/vin/tvin/viu/viuin.c @@ -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;