aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Abriou <vincent.abriou@st.com>2015-02-04 10:54:13 -0500
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>2015-02-04 11:52:28 -0500
commit17ba9810ec4c8f95bfde516653e81d435809eb6b (patch)
tree6cbbea5252b77941ce0e90841d8bbadbf56fde44
parent6dfca6b37fb20f31502153b549ce5948fcd5ecef (diff)
drm: sti: fix static checker warning in sti_awg_utils
The shift and the mask done on arg value is useless since arg is null. Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
-rw-r--r--drivers/gpu/drm/sti/sti_awg_utils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/sti/sti_awg_utils.c b/drivers/gpu/drm/sti/sti_awg_utils.c
index 9fde3ee8b1a5..6029a2e3db1d 100644
--- a/drivers/gpu/drm/sti/sti_awg_utils.c
+++ b/drivers/gpu/drm/sti/sti_awg_utils.c
@@ -60,8 +60,6 @@ static int awg_generate_instr(enum opcode opcode,
60 * pixel. So we transform SKIP into SET 60 * pixel. So we transform SKIP into SET
61 * instruction */ 61 * instruction */
62 opcode = SET; 62 opcode = SET;
63 arg = (arg << 24) >> 24;
64 arg &= (0x0ff);
65 break; 63 break;
66 } 64 }
67 65