summaryrefslogtreecommitdiff
path: root/drivers/watchdog/nv_tco.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-06-19 17:14:03 -0500
committerPavel Machek <pavel@ucw.cz>2020-07-12 10:28:01 +0200
commitcf1a1a6a7d81d73bcb5568b23572d6fd593add87 (patch)
treeae676ad71662219e5e86ff5b1e5f64962084adba /drivers/watchdog/nv_tco.h
parenta7ad53cb6687069024efbd3af734c7811f63d2a5 (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/watchdog/nv_tco.h')
0 files changed, 0 insertions, 0 deletions