diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-19 17:14:03 -0500 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-07-12 10:28:01 +0200 |
commit | cf1a1a6a7d81d73bcb5568b23572d6fd593add87 (patch) | |
tree | ae676ad71662219e5e86ff5b1e5f64962084adba /drivers/hv | |
parent | a7ad53cb6687069024efbd3af734c7811f63d2a5 (diff) |
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 'drivers/hv')
0 files changed, 0 insertions, 0 deletions