Re: [PATCH v1] drm/bridge: analogix_dp: Drop the redundant plat_data NULL checks
From: Luca Ceresoli
Date: Tue Dec 01 2026 - 12:24:35 EST
On Mon Nov 30, 2026 at 10:43 AM CET, Damon Ding wrote:
> The &analogix_dp_device.plat_data is always set by analogix_dp_probe(),
> which rejects a NULL pointer, and both platform drivers pass a pointer
> to an embedded struct member. The checks are therefore redundant.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <error27@xxxxxxxxx>
> Closes: https://lore.kernel.org/r/20261127191930.YPrJQfCE-lkp@xxxxxxxxx/
> Signed-off-by: Damon Ding <damon.ding@xxxxxxxxxxxxxx>
Acked-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com