Commit 121f0ff5 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Use memmove() for punching the hole into infoframes

Replace the hand rolled memmove() with the real thing.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180920185145.1912-9-ville.syrjala@linux.intel.comReviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 85f5e1f3
...@@ -457,9 +457,7 @@ static void intel_write_infoframe(struct drm_encoder *encoder, ...@@ -457,9 +457,7 @@ static void intel_write_infoframe(struct drm_encoder *encoder,
return; return;
/* Insert the 'hole' (see big comment above) at position 3 */ /* Insert the 'hole' (see big comment above) at position 3 */
buffer[0] = buffer[1]; memmove(&buffer[0], &buffer[1], 3);
buffer[1] = buffer[2];
buffer[2] = buffer[3];
buffer[3] = 0; buffer[3] = 0;
len++; len++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment