aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2019-07-21 18:01:35 +0300
committerGreg Kroah-Hartman <[email protected]>2019-09-04 12:43:44 +0200
commitdf60a8af8420cb440a2456e7b3ec02446f1e2e74 (patch)
treefff94c6daad8167d58f96a2f99d749942d437aae /tools/perf/scripts/python/export-to-postgresql.py
parent18b1345e60ae8887d914e83f535962cd3bb1c1be (diff)
serial: 8250_exar: Use struct_size() helper
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions