From: SF Markus Elfring Date: Sat, 15 Apr 2017 17:29:23 +0000 Subject: Re: regulator: s2mps11: Use kcalloc() in s2mps11_pmic_probe() Message-Id: <5fbe1743-2d68-4959-d71d-ed9dfca69eb5@users.sourceforge.net> List-Id: References: <542252e0-817f-ce13-fbd5-8fd8dda4c746@users.sourceforge.net> <20170415104845.bofxl34wr7z7khix@kozik-lap> In-Reply-To: <20170415104845.bofxl34wr7z7khix@kozik-lap> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Krzysztof Kozlowski Cc: linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , Liam Girdwood , Mark Brown , Sangbeom Kim , LKML , kernel-janitors@vger.kernel.org >> A multiplication for the size determination of a memory allocation >> indicated that an array data structure should be processed. >> Thus use the corresponding function "kcalloc". >> >> This issue was detected by using the Coccinelle software. > > Unfortunately you write mostly cryptic commit messages. Thanks for your feedback. > This does not answer for the main question - why this change is needed. My update suggestion affects an aspect for the coding style. > Code looks okay, There can be different opinions about related implementation details. > but you should explain in simple words why this is needed. Do you find the following wording from the script “checkpatch.pl” better to understand? WARNING: Prefer kcalloc over kzalloc with multiply Regards, Markus