aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2019-05-23 17:23:33 -0500
committerMark Brown <[email protected]>2019-05-24 13:01:38 +0100
commitd00cc2f16a41ee704113f9447f2d0a10ad4f0ec7 (patch)
treeb6c230d37b4cea83290b665ac06ebcb3f90ac8d3 /tools/perf/scripts/python/export-to-sqlite.py
parent07597910a9c02c0ce33b779b5c24c5407ee7bd48 (diff)
ASoC: Intel: Skylake: Use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes, in particular in the context in which this code is being used. So, replace the following form: uuid_params->num_modules * sizeof(struct skl_mod_inst_map) + sizeof(uuid_params->num_modules) with: struct_size(params, u.map, uuid_params->num_modules) and so on... This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions