All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Elise Lennion <elise.lennion@gmail.com>
Cc: vaibhav.sr@gmail.com, johan@kernel.org, elder@kernel.org,
	outreachy-kernel@googlegroups.com
Subject: Re: [PATCH 6/7] staging: greybus: Use kcalloc for array's memory allocation.
Date: Wed, 12 Oct 2016 15:22:46 +0200	[thread overview]
Message-ID: <20161012132246.GB22338@kroah.com> (raw)
In-Reply-To: <20161011031614.GA22058@lennorien.com>

On Tue, Oct 11, 2016 at 12:16:14AM -0300, Elise Lennion wrote:
> Fix checkpatch warning:
> 
> WARNING: Prefer kcalloc over kzalloc with multiply
> 
> kcalloc is designed to allocate memory for arrays, its use is
> preferable than kzalloc in these cases.
> 
> Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
> ---
>  drivers/staging/greybus/camera.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Same issue with the subject:, it's the same as the previous patch.

A way to make it more unique would be to add the driver name to it, so
for this one, it would be:
	staging: greybus: camera: use kcalloc for array's memory

thanks,

greg k-h


  reply	other threads:[~2016-10-12 13:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-11  3:16 [PATCH 6/7] staging: greybus: Use kcalloc for array's memory allocation Elise Lennion
2016-10-12 13:22 ` Greg KH [this message]
2016-10-12 17:23   ` Elise Lennion
  -- strict thread matches above, loose matches on Subject: below --
2016-10-11  3:14 Elise Lennion

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=20161012132246.GB22338@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=elder@kernel.org \
    --cc=elise.lennion@gmail.com \
    --cc=johan@kernel.org \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=vaibhav.sr@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.