Commit d098a505 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter

drm/i915: Remove special case from intel_supported_rates()

Now that both source and sink rates are always filled in there's no need
for any special cases in intel_supported_rates().
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarSonika Jindal <sonika.jindal@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 12f6a2e2
...@@ -1207,14 +1207,6 @@ static int intel_supported_rates(const int *source_rates, int source_len, ...@@ -1207,14 +1207,6 @@ static int intel_supported_rates(const int *source_rates, int source_len,
{ {
int i = 0, j = 0, k = 0; int i = 0, j = 0, k = 0;
/* For panels with edp version less than 1.4 */
if (sink_len == 0) {
for (i = 0; i < source_len; ++i)
supported_rates[i] = source_rates[i];
return source_len;
}
/* For edp1.4 panels, find the common rates between source and sink */
while (i < source_len && j < sink_len) { while (i < source_len && j < sink_len) {
if (source_rates[i] == sink_rates[j]) { if (source_rates[i] == sink_rates[j]) {
supported_rates[k] = source_rates[i]; supported_rates[k] = source_rates[i];
......
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