From: SF Markus Elfring <elfring@users.sourceforge.net>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: linux-samsung-soc@vger.kernel.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Sangbeom Kim <sbkim73@samsung.com>,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org
Subject: Re: regulator: s2mps11: Use kcalloc() in s2mps11_pmic_probe()
Date: Sat, 15 Apr 2017 19:29:23 +0200 [thread overview]
Message-ID: <5fbe1743-2d68-4959-d71d-ed9dfca69eb5@users.sourceforge.net> (raw)
In-Reply-To: <20170415104845.bofxl34wr7z7khix@kozik-lap>
>> 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
next prev parent reply other threads:[~2017-04-15 17:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-14 21:00 [PATCH 0/2] regulator: s2mps11: Fine-tuning for s2mps11_pmic_probe() SF Markus Elfring
2017-04-14 21:01 ` [PATCH 1/2] regulator: s2mps11: Use kcalloc() in s2mps11_pmic_probe() SF Markus Elfring
2017-04-15 10:48 ` Krzysztof Kozlowski
2017-04-15 17:29 ` SF Markus Elfring [this message]
2017-04-14 21:02 ` [PATCH 2/2] regulator: s2mps11: Use devm_kmalloc_array() " SF Markus Elfring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5fbe1743-2d68-4959-d71d-ed9dfca69eb5@users.sourceforge.net \
--to=elfring@users.sourceforge.net \
--cc=b.zolnierkie@samsung.com \
--cc=broonie@kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=sbkim73@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome