drm: sti: fix static checker warning in sti_awg_utils
authorVincent Abriou <vincent.abriou@st.com>
Wed, 4 Feb 2015 15:54:13 +0000 (16:54 +0100)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 4 Feb 2015 16:52:28 +0000 (17:52 +0100)
The shift and the mask done on arg value is useless
since arg is null.

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_awg_utils.c

index 9fde3ee8b1a5a945d13b0ebf7cdb18f44cea6355..6029a2e3db1dc8feb5243e992abef98594d2a766 100644 (file)
@@ -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;
                        }