diff options
| author | Markus Elfring <elfring@users.sourceforge.net> | 2019-06-17 14:24:14 +0200 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-17 11:02:03 -0500 |
| commit | b9341521700dddea0c5d80d904c2c2f4d100323f (patch) | |
| tree | 712aa4e254dcc1323015860c30472968589141ee /drivers/gpu/drm/amd | |
| parent | 4fe7d1a8a4c4dd289ec30d02f4bad9054674ec6c (diff) | |
| download | talos-op-linux-b9341521700dddea0c5d80d904c2c2f4d100323f.tar.gz talos-op-linux-b9341521700dddea0c5d80d904c2c2f4d100323f.zip | |
drm/amd/powerplay: Delete a redundant memory setting in vega20_set_default_od8_setttings()
The memory was set to zero already by a call of the function “kzalloc”.
Thus remove an extra call of the function “memset” for this purpose.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c index 4aa8f5a69c4c..62497ad66a39 100644 --- a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c +++ b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c @@ -1295,7 +1295,6 @@ static int vega20_set_default_od8_setttings(struct smu_context *smu) if (!table_context->od8_settings) return -ENOMEM; - memset(table_context->od8_settings, 0, sizeof(struct vega20_od8_settings)); od8_settings = (struct vega20_od8_settings *)table_context->od8_settings; if (smu_feature_is_enabled(smu, FEATURE_DPM_SOCCLK_BIT)) { |

