summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-06-20 01:14:03 +0300
committerPavel Machek <pavel@ucw.cz>2020-07-12 11:28:01 +0300
commitcf1a1a6a7d81d73bcb5568b23572d6fd593add87 (patch)
treeae676ad71662219e5e86ff5b1e5f64962084adba /tools/perf/scripts/python/exported-sql-viewer.py
parenta7ad53cb6687069024efbd3af734c7811f63d2a5 (diff)
downloadlinux-cf1a1a6a7d81d73bcb5568b23572d6fd593add87.tar.xz
leds: gpio: Use struct_size() in devm_kzalloc()
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. Also, remove unnecessary function sizeof_gpio_leds_priv(). This code was detected with the help of Coccinelle and, audited and fixed manually. Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions