Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1702070

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

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies
Date 2017-08-02 14:20 +0200
Message-ID <ua0N4-1m9-23@gated-at.bofh.it> (permalink)
References <u6MZX-6gF-3@gated-at.bofh.it> <u6MZX-6gF-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jul 24, 2017 at 4:55 PM, Thierry Reding
<thierry.reding@gmail.com> wrote:

> From: Thierry Reding <treding@nvidia.com>
>
> Rather than manually compute the size of an array, pass the number and
> element size to kcalloc().
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>

Patch applied with Jon's ACK.

Yours,
Linus Walleij

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies Linus Walleij <linus.walleij@linaro.org> - 2017-08-02 14:20 +0200

csiph-web