aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-11-02 17:56:57 +0100
committerJyri Sarha <[email protected]>2023-11-28 21:57:16 +0200
commit012e3208ab8d1456379d047d88d69ab7e074a520 (patch)
treec5c5b1c2b74b2f41b5bc22c8f337aedfa8031ee9 /tools/perf/scripts/python/task-analyzer.py
parentf92a39ae47076ea123c7980fb85e6e33313f372e (diff)
drm/tilcdc: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new() which already returns void. There is one error path in tilcdc_pdev_remove() that potentially could yield a non-zero return code. In this case an error message describing the failure is emitted now instead of remove callback returned a non-zero value. This will be ignored. before. Otherwise there is no difference. Also note that currently tilcdc_get_external_components() doesn't return negative values. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Jyri Sarha <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Tomi Valkeinen <[email protected]> Tested-by: Jyri Sarha <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions