aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Gustavo A. R. Silva <gustavoars@kernel.org> 2020-06-17 18:07:57 -0500
committerGravatar Pavel Machek <pavel@ucw.cz> 2020-07-12 10:26:10 +0200
commita7ad53cb6687069024efbd3af734c7811f63d2a5 (patch)
treeb0169dface24e6e9648ae16139eb27927fffb7d5 /Makefile
parentleds: gpio: Fix semantic error (diff)
downloadlinux-a7ad53cb6687069024efbd3af734c7811f63d2a5.tar.gz
linux-a7ad53cb6687069024efbd3af734c7811f63d2a5.tar.bz2
linux-a7ad53cb6687069024efbd3af734c7811f63d2a5.zip
leds: ns2: 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_ns2_led_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 'Makefile')
0 files changed, 0 insertions, 0 deletions