Skip to content

Commit

Permalink
drm: sti: fix static checker warning in sti_awg_utils
Browse files Browse the repository at this point in the history
The shift and the mask done on arg value is useless
since arg is null.

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
  • Loading branch information
Vincent Abriou authored and Benjamin Gaignard committed Feb 4, 2015
1 parent 6dfca6b commit 17ba981
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/sti/sti_awg_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ static int awg_generate_instr(enum opcode opcode,
* pixel. So we transform SKIP into SET
* instruction */
opcode = SET;
arg = (arg << 24) >> 24;
arg &= (0x0ff);
break;
}

Expand Down

0 comments on commit 17ba981

Please sign in to comment.