Bläddra i källkod

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>
Vincent Abriou 10 år sedan
förälder
incheckning
17ba9810ec
1 ändrade filer med 0 tillägg och 2 borttagningar
  1. 0 2
      drivers/gpu/drm/sti/sti_awg_utils.c

+ 0 - 2
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;
 			}