aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-09-20 14:51:35 -0400
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-10-01 15:11:56 -0400
commit121f0ff52f77341863d1ec1841771e503fa7f09c (patch)
tree33631a55d0b50a24bd38be0777f366fc44c5596e
parent85f5e1f385b7643ee31e0530a1daa2438ac27aaf (diff)
drm/i915: Use memmove() for punching the hole into infoframes
Replace the hand rolled memmove() with the real thing. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180920185145.1912-9-ville.syrjala@linux.intel.com Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_hdmi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index a2dab0b6bde6..3b56ab253171 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -457,9 +457,7 @@ static void intel_write_infoframe(struct drm_encoder *encoder,
457 return; 457 return;
458 458
459 /* Insert the 'hole' (see big comment above) at position 3 */ 459 /* Insert the 'hole' (see big comment above) at position 3 */
460 buffer[0] = buffer[1]; 460 memmove(&buffer[0], &buffer[1], 3);
461 buffer[1] = buffer[2];
462 buffer[2] = buffer[3];
463 buffer[3] = 0; 461 buffer[3] = 0;
464 len++; 462 len++;
465 463