Skip to content

Commit

Permalink
drm/i915: Use memmove() for punching the hole into infoframes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ville Syrjälä committed Oct 1, 2018
1 parent 85f5e1f commit 121f0ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/i915/intel_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ static void intel_write_infoframe(struct drm_encoder *encoder,
return;

/* Insert the 'hole' (see big comment above) at position 3 */
buffer[0] = buffer[1];
buffer[1] = buffer[2];
buffer[2] = buffer[3];
memmove(&buffer[0], &buffer[1], 3);
buffer[3] = 0;
len++;

Expand Down

0 comments on commit 121f0ff

Please sign in to comment.