aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2023-02-05 21:53:25 +0000
committerMauro Carvalho Chehab <[email protected]>2023-04-15 10:37:33 +0100
commit340b4dd6c183678fc37906e491ed8431c8330c29 (patch)
treef9b37bf9d0db441bf743cb22fd4394393bad9af7 /tools/perf/scripts/python/task-analyzer.py
parent2726c899fb6d57d1b40c732b3b977445c4fb2400 (diff)
media: atomisp: gc0310: Use devm_kzalloc() for data struct
Use devm_kzalloc() to allocate the data struct. It is always free-ed as the last step of probe-error-exit or remove, so it can be devm-managed. This will make unwinding things easier when support is added to the gc0310 code to use standard GPIO APIs instead of the custom atomisp_gmin code. This also allows dropping the out_free label and use direct return on errors. This may seem like a functional change since the out_free label also did a v4l2_device_unregister_subdev() but at the 1 changed return the device is not registered yet, so that always is a no-op and can be dropped. Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions