From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Aishwarya Pant <aishpant@gmail.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>,
Lee Jones <lee@kernel.org>, Eric Anholt <eric@anholt.net>,
Florian Fainelli <f.fainelli@gmail.com>,
Ray Jui <rjui@broadcom.com>,
Scott Branden <sbranden@broadcom.com>,
bcm-kernel-feedback-list@broadcom.com,
outreachy-kernel@googlegroups.com
Subject: Re: [PATCH 1/2] staging: bcm2835-camera: replace kmalloc and memset with kzalloc
Date: Tue, 7 Mar 2017 20:11:03 +0100 [thread overview]
Message-ID: <20170307191103.GD6914@kroah.com> (raw)
In-Reply-To: <1df03618ee2857c159255ead5e5a6b06b53d7290.1488813479.git.aishpant@gmail.com>
On Mon, Mar 06, 2017 at 08:50:55PM +0530, Aishwarya Pant wrote:
> This patch replaces kmalloc and memset with kzalloc
>
> Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
> ---
> drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
> index ca6e9eb..ded9a99 100644
> --- a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
> +++ b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
> @@ -168,9 +168,8 @@ static struct mmal_msg_context *get_msg_context(struct vchiq_mmal_instance
> {
> struct mmal_msg_context *msg_context;
>
> - /* todo: should this be allocated from a pool to avoid kmalloc */
> - msg_context = kmalloc(sizeof(*msg_context), GFP_KERNEL);
> - memset(msg_context, 0, sizeof(*msg_context));
> + /* todo: should this be allocated from a pool to avoid kzalloc */
> + msg_context = kzalloc(sizeof(*msg_context), GFP_KERNEL);
This patch isn't needed in this series anymore, right? Please resend
just the needed patch, don't change code that is going to be deleted on
the next one for no reason.
thanks,
greg k-h
next prev parent reply other threads:[~2017-03-07 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-06 15:20 [PATCH 0/2] staging: bcm2835-camera: remove function get_msg_context Aishwarya Pant
2017-03-06 15:20 ` [PATCH 1/2] staging: bcm2835-camera: replace kmalloc and memset with kzalloc Aishwarya Pant
2017-03-07 19:11 ` Greg Kroah-Hartman [this message]
2017-03-06 15:21 ` [PATCH 2/2] staging: bcm2835-camera: remove redundant function get_msg_context Aishwarya Pant
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=20170307191103.GD6914@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=aishpant@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=eric@anholt.net \
--cc=f.fainelli@gmail.com \
--cc=lee@kernel.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=rjui@broadcom.com \
--cc=sbranden@broadcom.com \
--cc=swarren@wwwdotorg.org \
/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.