Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies

2017-08-02 Thread Linus Walleij
On Mon, Jul 24, 2017 at 4:55 PM, Thierry Reding wrote: > From: Thierry Reding > > Rather than manually compute the size of an array, pass the number and > element size to kcalloc(). > > Signed-off-by: Thierry Reding Patch applied with Jon's ACK. Yours, Linus Walleij

Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies

2017-07-25 Thread Jon Hunter
On 24/07/17 15:55, Thierry Reding wrote: > From: Thierry Reding > > Rather than manually compute the size of an array, pass the number and > element size to kcalloc(). > > Signed-off-by: Thierry Reding > --- > drivers/gpio/gpio-tegra.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions