]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dp: Simplify input BPP checks in intel_dp_dsc_compute_pipe_bpp()
authorJani Nikula <jani.nikula@intel.com>
Fri, 31 Jan 2025 12:50:03 +0000 (14:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 3 Feb 2025 14:31:39 +0000 (16:31 +0200)
commit73ef9abb239bcf2b4ed68d808e0935a4e0ee251b
treeed5661122c093c24911a45fdc1284e0c85b72fb2
parentdf64948ec2cecb1dc0747072aca23621ebf80be9
drm/i915/dp: Simplify input BPP checks in intel_dp_dsc_compute_pipe_bpp()

Drop the extra local variables and simplify the conditions. We don't
have to try to special case the loop condition and break in the validity
checks.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/5559b14d6af4e001677f23454d6bd8b3606b3d7a.1738327620.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dp.c