Commit d1ba49e7 authored by Bernard Zhao's avatar Bernard Zhao Committed by Alex Deucher

drm/amd/display: remove no need variable

remove no need variable, just return the DC_OK
Signed-off-by: default avatarBernard Zhao <bernard@vivo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7a68d188
...@@ -1266,8 +1266,6 @@ static enum dc_status dcn10_validate_global(struct dc *dc, struct dc_state *cont ...@@ -1266,8 +1266,6 @@ static enum dc_status dcn10_validate_global(struct dc *dc, struct dc_state *cont
static enum dc_status dcn10_patch_unknown_plane_state(struct dc_plane_state *plane_state) static enum dc_status dcn10_patch_unknown_plane_state(struct dc_plane_state *plane_state)
{ {
enum dc_status result = DC_OK;
enum surface_pixel_format surf_pix_format = plane_state->format; enum surface_pixel_format surf_pix_format = plane_state->format;
unsigned int bpp = resource_pixel_format_to_bpp(surf_pix_format); unsigned int bpp = resource_pixel_format_to_bpp(surf_pix_format);
...@@ -1279,7 +1277,7 @@ static enum dc_status dcn10_patch_unknown_plane_state(struct dc_plane_state *pla ...@@ -1279,7 +1277,7 @@ static enum dc_status dcn10_patch_unknown_plane_state(struct dc_plane_state *pla
swizzle = DC_SW_64KB_S; swizzle = DC_SW_64KB_S;
plane_state->tiling_info.gfx9.swizzle = swizzle; plane_state->tiling_info.gfx9.swizzle = swizzle;
return result; return DC_OK;
} }
struct stream_encoder *dcn10_find_first_free_match_stream_enc_for_link( struct stream_encoder *dcn10_find_first_free_match_stream_enc_for_link(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment