projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85f5e1f
)
drm/i915: Use memmove() for punching the hole into infoframes
author
Ville Syrjälä
<
[email protected]
>
Thu, 20 Sep 2018 18:51:35 +0000
(21:51 +0300)
committer
Ville Syrjälä
<
[email protected]
>
Mon, 1 Oct 2018 19:11:56 +0000
(22:11 +0300)
Replace the hand rolled memmove() with the real thing.
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/intel_hdmi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_hdmi.c
b/drivers/gpu/drm/i915/intel_hdmi.c
index a2dab0b6bde6a6a1034b8dcc76c27e03b1004f27..3b56ab253171d34e30436483d97fb4a3ce99ffa2 100644
(file)
--- 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,
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++;