leds: ns2: Slightly simplify a memory allocation
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 22 Jul 2023 20:26:49 +0000 (22:26 +0200)
committerLee Jones <lee@kernel.org>
Fri, 28 Jul 2023 10:58:04 +0000 (11:58 +0100)
commitc8a039436525072af7e77f540d21f0d312fc7c38
treed247a47fe6578252aab31a99a4355ffe3fc6b1c7
parent3192f141240336dd6d7675ff374757006fed1916
leds: ns2: Slightly simplify a memory allocation

Use devm_kcalloc() instead of devm_kzalloc()+array_size().

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/560b8f140c19a7da40f5e9540c3ef312969b0dc4.1690057595.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-ns2.c