From: Vincent Abriou <vincent.abriou@st.com>
Date: Wed, 4 Feb 2015 15:54:13 +0000 (+0100)
Subject: drm: sti: fix static checker warning in sti_awg_utils
X-Git-Tag: firefly_0821_release~176^2~2312^2~5^2~3
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=17ba9810ec4c8f95bfde516653e81d435809eb6b;p=firefly-linux-kernel-4.4.55.git

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>
---

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,
 				 * pixel. So we transform SKIP into SET
 				 * instruction */
 				opcode = SET;
-				arg = (arg << 24) >> 24;
-				arg &= (0x0ff);
 				break;
 			}