[PATCH] PM / devfreq: mediatek: Fix unnecessary check of drvdata

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue Jun 21 00:31:06 PDT 2022


Il 20/06/22 17:43, matthias.bgg at kernel.org ha scritto:
> From: Matthias Brugger <matthias.bgg at gmail.com>
> 
> Probe function will error out if drvdata 'mtk_ccifreq_drv' is null.
> So when mtk_ccifreq_target get's called, the drv pointer will never be
> NULL. This fixes a static checker warning.
> 
> Cc: Dan Carpenter <dan.carpenter at oracle.com>
> Signed-off-by: Matthias Brugger <matthias.bgg at gmail.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>




More information about the Linux-mediatek mailing list