Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753306AbdHBMQy (ORCPT ); Wed, 2 Aug 2017 08:16:54 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:37493 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753117AbdHBMQv (ORCPT ); Wed, 2 Aug 2017 08:16:51 -0400 MIME-Version: 1.0 In-Reply-To: <20170724145508.7388-2-thierry.reding@gmail.com> References: <20170724145508.7388-1-thierry.reding@gmail.com> <20170724145508.7388-2-thierry.reding@gmail.com> From: Linus Walleij Date: Wed, 2 Aug 2017 14:16:49 +0200 Message-ID: Subject: Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies To: Thierry Reding Cc: Jonathan Hunter , "linux-gpio@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 339 Lines: 14 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