Skip to content

Commit

Permalink
viu: null point check
Browse files Browse the repository at this point in the history
PD#150474: viu: null point check

driver defect clean up:
torvalds#95

Change-Id: I29daf5b12927c7f6227c332d0064d2e437099a8c
Signed-off-by: Dezhi Kong <[email protected]>
  • Loading branch information
Dezhi Kong authored and akiernan committed Nov 4, 2022
1 parent d765b50 commit 7f4dce0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/amlogic/media/vin/tvin/viu/viuin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f4dce0

Please sign in to comment.