aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2024-02-23 13:59:06 +0100
committerHans Verkuil <[email protected]>2024-02-28 16:00:32 +0100
commite992ee7eb56f827088f63c9d5210ab4da25a5c4d (patch)
treeacee09ac46ee561c1f5d800a19db390d7482cb7f /tools/perf/util/trace-event-scripting.c
parent289eb3529ae343a20d1d0cf09f9cb898c8cbb230 (diff)
media: nxp: imx8-isi: 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 ignored (apart from emitting a warning) 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. Eventually after all drivers are converted, .remove_new() will be renamed to .remove(). Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions