Skip to contentSkip to conversation

drm/amdgpu/vkms: drop redundant set of fb_modifiers_not_supported

PATCH In review Guchun Chen 2 participants 2 messages Jul 6, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/vkms: drop redundant set of fb_modifiers_not_supported

Due to a coding typo.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +0 -2
index 70fb0df039e3..2a318c6d2cdf 100644
@@ -500,8 +500,6 @@ static int amdgpu_vkms_sw_init(void *handle)
 
 	adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true;
 
-	adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true;
-
 	r = amdgpu_display_modeset_create_props(adev);
 	if (r)
 		return r;
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 06.07.23 um 11:23 schrieb Guchun Chen:

Quoted 3 lines

Due to a coding typo.

Quoted 17 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 2 --
  1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +0 -2
index 70fb0df039e3..2a318c6d2cdf 100644
@@ -500,8 +500,6 @@ static int amdgpu_vkms_sw_init(void *handle)
 
  	adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true;
 
-	adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true;
-
  	r = amdgpu_display_modeset_create_props(adev);
  	if (r)
  		return r;