Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 85f5e1f3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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++;