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:
8440c30
)
drm/amd/display: Replace block with strncpy() in fill_audio_info()
author
Tom St Denis
<
[email protected]
>
Tue, 17 Oct 2017 13:46:54 +0000
(09:46 -0400)
committer
Alex Deucher
<
[email protected]
>
Sat, 21 Oct 2017 20:53:29 +0000
(16:53 -0400)
Replace inlined strncpy with library call.
Signed-off-by: Tom St Denis <
[email protected]
>
Acked-by: Andrey Grodzovsky <
[email protected]
>
Reviewed-by: Harry Wentland <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index fb24ba69b2a6e1b503039a7dce6aa59550876cf8..3f405976f8820ebf27aad9c6b04b65654fa36c37 100644
(file)
--- a/
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@
-2238,11
+2238,9
@@
static void fill_audio_info(struct audio_info *audio_info,
cea_revision = drm_connector->display_info.cea_rev;
- while (i < AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS &&
- edid_caps->display_name[i]) {
- audio_info->display_name[i] = edid_caps->display_name[i];
- i++;
- }
+ strncpy(audio_info->display_name,
+ edid_caps->display_name,
+ AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS - 1);
if (cea_revision >= 3) {
audio_info->mode_count = edid_caps->audio_mode_count;