diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-03-10 23:41:25 +0100 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2023-05-30 18:58:42 -0500 |
commit | e0ac89361cfb45d7c84de81563367745d2056f16 (patch) | |
tree | a7ff74a9ee52d6288adce2122d5ba881c03d559a /tools/perf/scripts/python/task-analyzer.py | |
parent | f8fce8318366ad4a85aba7a6c9fca900876b01f9 (diff) |
bus: fsl-mc: fsl-mc-allocator: Drop if block with always wrong condition
If fsl_mc_is_allocatable(mc_dev) evaluates to false, the driver won't
have bound to that device and then fsl_mc_allocator_remove() is never
called for that device. fsl_mc_allocator_remove() is the only caller of
fsl_mc_resource_pool_remove_device(), so the same check can be removed
from there.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com> # sanity checks
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Tested-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions