From: Santha Meena Ramamoorthy <santhameena13@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v3] staging: rtl8192e: use struct pointer to get the size of the struct
Date: Wed, 28 Feb 2018 10:17:47 -0800 [thread overview]
Message-ID: <20180228181747.GA17434@ubuntu> (raw)
In-Reply-To: <alpine.DEB.2.20.1802251012080.4584@hadrien>
On Sun, Feb 25, 2018 at 10:12:38AM +0100, Julia Lawall wrote:
>
>
> On Sat, 24 Feb 2018, Santha Meena Ramamoorthy wrote:
>
> > Use pointer to the structure to get the size of the structure in order
> > to conform to the Linux kernel coding style. Issue found using
> > checkpatch.
> >
> > Signed-off-by: Santha Meena Ramamoorthy <santhameena13@gmail.com>
>
> Acked-by: Julia Lawall <julia.lawall@lip6.fr>
>
> > ---
> > Change in v2:
> > - Use single line when the number of characters is less than 80
> > Change in v3:
> > - Improve the subject line and the commit message
> > No code change since v2
>
> Actually, the most recent change description should come first.
>
> julia
Sorry, I'll remember that :)
>
> > drivers/staging/rtl8192e/rtllib_wx.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8192e/rtllib_wx.c b/drivers/staging/rtl8192e/rtllib_wx.c
> > index 03fbff0..74d4d2d 100644
> > --- a/drivers/staging/rtl8192e/rtllib_wx.c
> > +++ b/drivers/staging/rtl8192e/rtllib_wx.c
> > @@ -371,8 +371,7 @@ int rtllib_wx_set_encode(struct rtllib_device *ieee,
> > struct lib80211_crypt_data *new_crypt;
> >
> > /* take WEP into use */
> > - new_crypt = kzalloc(sizeof(struct lib80211_crypt_data),
> > - GFP_KERNEL);
> > + new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL);
> > if (new_crypt == NULL)
> > return -ENOMEM;
> > new_crypt->ops = lib80211_get_crypto_ops("R-WEP");
> > --
> > 2.7.4
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To post to this group, send email to outreachy-kernel@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1519508793-11537-1-git-send-email-santhameena13%40gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
prev parent reply other threads:[~2018-02-28 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-24 21:46 [PATCH v3] staging: rtl8192e: use struct pointer to get the size of the struct Santha Meena Ramamoorthy
2018-02-25 9:12 ` [Outreachy kernel] " Julia Lawall
2018-02-28 18:17 ` Santha Meena Ramamoorthy [this message]
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=20180228181747.GA17434@ubuntu \
--to=santhameena13@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=outreachy-kernel@googlegroups.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.