Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies
From: Linus Walleij
Date: Wed Aug 02 2017 - 08:16:59 EST
On Mon, Jul 24, 2017 at 4:55 PM, Thierry Reding
<thierry.reding@xxxxxxxxx> wrote:
> From: Thierry Reding <treding@xxxxxxxxxx>
>
> Rather than manually compute the size of an array, pass the number and
> element size to kcalloc().
>
> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
Patch applied with Jon's ACK.
Yours,
Linus Walleij