OSDN Git Service

drm/amd/display: remove redundant check
authorCharlene Liu <charlene.liu@amd.com>
Mon, 20 Mar 2017 18:49:53 +0000 (14:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:20:47 +0000 (17:20 -0400)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c

index 875d1a6..61ca1e2 100644 (file)
@@ -1063,8 +1063,6 @@ static bool are_stream_backends_same(
        if (stream_a == NULL || stream_b == NULL)
                return false;
 
-       if (stream_a->public.timing.pixel_encoding != stream_b->public.timing.pixel_encoding)
-               return false;
        if (is_timing_changed(stream_a, stream_b))
                return false;
 
@@ -1074,8 +1072,6 @@ static bool are_stream_backends_same(
 bool is_stream_unchanged(
        const struct core_stream *old_stream, const struct core_stream *stream)
 {
-       if (old_stream != stream)
-               return false;
 
        if (!are_stream_backends_same(old_stream, stream))
                return false;