Re: [PATCH] drm/display: remove dead code in drm_edp_backlight_probe_state

From: Joey Pabalinas
Date: Wed Aug 20 2025 - 01:19:53 EST


On Wed, Aug 20, 2025 at 10:30:31AM +0800, Nai-Chen Cheng wrote:
> In the error path where ret < 0, the ternary operator "ret < 0 ? ret :
> -EIO" will always evaluate to ret since ret is guaranteed to be
> negative. Simplify by directly returning ret.
>
> Found by Coverity(CID 1649044).

Acked-by: Joey Pabalinas <joeypabalinas@xxxxxxxxx>

--
Cheers,
Joey Pabalinas

Attachment: signature.asc
Description: PGP signature