All of lore.kernel.org
 help / color / mirror / Atom feed
From: Namrata A Shettar <namrataashettar@gmail.com>
To: outreachy-kernel <outreachy-kernel@googlegroups.com>,
	Julia Lawall <julia.lawall@lip6.fr>
Subject: Re: [Outreachy kernel] [PATCH 3/6] staging: vt6656: main_usb: Replace data type declaration with variable of same type
Date: Thu, 15 Sep 2016 23:40:33 +0530	[thread overview]
Message-ID: <CAFrQyDFZ92oTmzrW1k62uyjRowFKbkhmX6jzzcX334kJCzjbuA@mail.gmail.com> (raw)
In-Reply-To: <20160915180849.GA6416@namrata-HP-Pavilion-g6-Notebook-PC>

[-- Attachment #1: Type: text/plain, Size: 2220 bytes --]

On Thu, Sep 15, 2016 at 07:19:23AM +0200, Julia Lawall wrote:
>
>
> On Thu, 15 Sep 2016, Namrata A Shettar wrote:
>
> > This patch fixes checkpatch issue:
> > -Replacing sizeof(struct vnt_usb_send_context) with sizeof(*tx_context)
> > -Replacing sizeof(struct vnt_rcb) with sizeof(*priv->rcb[ii])
> > The replacements are of the type they are replaced with hence size
> > remains same.
> >
> > Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
> > ---
> >  drivers/staging/vt6656/main_usb.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> >         for (ii = 0; ii < priv->num_tx_context; ii++) {
> > -               tx_context = kmalloc(sizeof(struct
vnt_usb_send_context),
> > +               tx_context = kmalloc(sizeof(*tx_context),
> >
GFP_KERNEL);
>
> The GFP_KERNEL argument should not be left way out on the right like that.
> Now it could be on the sam line as the kmalloc.
>
> julia
>

Will that change come in the same patch? or should I create a new patch
for the same?

Thanks,
Namrata

On Thu, Sep 15, 2016 at 11:38 PM, Namrata A Shettar <
namrataashettar@gmail.com> wrote:

> On Thu, Sep 15, 2016 at 07:19:23AM +0200, Julia Lawall wrote:
> >
> >
> > On Thu, 15 Sep 2016, Namrata A Shettar wrote:
> >
> > > This patch fixes checkpatch issue:
> > > -Replacing sizeof(struct vnt_usb_send_context) with sizeof(*tx_context)
> > > -Replacing sizeof(struct vnt_rcb) with sizeof(*priv->rcb[ii])
> > > The replacements are of the type they are replaced with hence size
> > > remains same.
> > >
> > > Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
> > > ---
> > >  drivers/staging/vt6656/main_usb.c | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > >         for (ii = 0; ii < priv->num_tx_context; ii++) {
> > > -               tx_context = kmalloc(sizeof(struct
> vnt_usb_send_context),
> > > +               tx_context = kmalloc(sizeof(*tx_context),
> > >
> GFP_KERNEL);
> >
> > The GFP_KERNEL argument should not be left way out on the right like
> that.
> > Now it could be on the sam line as the kmalloc.
> >
> > julia
> >
>
> Will that change come in the same patch? or should I create a new patch
> for the same?
>
> Thanks,
> Namrata
>

[-- Attachment #2: Type: text/html, Size: 3575 bytes --]

  parent reply	other threads:[~2016-09-15 18:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 22:16 [PATCH 3/6] staging: vt6656: main_usb: Replace data type declaration with variable of same type Namrata A Shettar
2016-09-15  5:19 ` [Outreachy kernel] " Julia Lawall
     [not found]   ` <20160915180849.GA6416@namrata-HP-Pavilion-g6-Notebook-PC>
2016-09-15 18:10     ` Namrata A Shettar [this message]
2016-09-15 19:24       ` Julia Lawall

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=CAFrQyDFZ92oTmzrW1k62uyjRowFKbkhmX6jzzcX334kJCzjbuA@mail.gmail.com \
    --to=namrataashettar@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.