diff options
author | 2019-07-25 22:05:50 +0300 | |
---|---|---|
committer | 2019-07-30 14:12:51 +0300 | |
commit | c03f282e506f1e873ef9b270cf245509d68dd53b (patch) | |
tree | 3f74436f9ee685e12c4df0291a9c7e9447c5096e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | platform/x86: dell-wmi: Use existing defined KBD_LED_* magic values (diff) | |
download | wireguard-linux-c03f282e506f1e873ef9b270cf245509d68dd53b.tar.xz wireguard-linux-c03f282e506f1e873ef9b270cf245509d68dd53b.zip |
platform/x86: i2c-multi-instantiate: 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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions