summaryrefslogtreecommitdiff
path: root/drivers/powercap
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-11-04 02:00:02 +0300
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-11-16 14:43:56 +0300
commit864acca58000d9cd4cf810ddfca2815be045c748 (patch)
tree2f814f9e6d408e5d219e281e1c87b312d0d3a7c9 /drivers/powercap
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
downloadlinux-864acca58000d9cd4cf810ddfca2815be045c748.tar.xz
bus: fsl-mc: Drop if block with always false condition
The mc that belongs to a pdev is always a root dprc. In fsl_mc_bus_probe() the mc device gets assigned the platform device as parent. As dev_is_fsl_mc() is false for a platform device, fsl_mc_get_root_dprc() will always be true and so the if body is never run and it can be dropped. The motivation for this change is to get rid of an error path in .remove() that is broken (because only a part of the necessary cleanup is done resulting in leaks and/or use-after-frees and the driver core ignores the return value of .remove().) Link: https://lore.kernel.org/r/20231103230001.3652259-3-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/powercap')
0 files changed, 0 insertions, 0 deletions