All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Nishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in>
Cc: forest@alittletooquiet.net,
	outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] Re: [PATCH v3 5/5] staging: vt6655: Remove else after return statement
Date: Wed, 28 Mar 2018 20:04:06 +0200	[thread overview]
Message-ID: <20180328180406.GA32098@kroah.com> (raw)
In-Reply-To: <CAC4++KA7Ezx9X0tGJB0f8PDXk5xmZEbUHaqOJz7U6e2SPGeQZA@mail.gmail.com>

On Wed, Mar 28, 2018 at 11:00:24PM +0530, Nishka Dasgupta wrote:
> On Wed, Mar 28, 2018 at 9:38 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> > On Wed, Mar 28, 2018 at 06:23:46PM +0530, Nishka Dasgupta wrote:
> >> On Wed, Mar 28, 2018 at 5:27 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> >> > On Sat, Mar 24, 2018 at 11:59:18AM +0000, Nishka Dasgupta wrote:
> >> >> Remove else after return statement. Issue found with checkpatch.
> >> >>
> >> >> Signed-off-by: Nishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in>
> >> >> ---
> >> >> Changes in v3:
> >> >>  - None.
> >> >>
> >> >>  drivers/staging/vt6655/rxtx.c | 37 ++++++++++++++++++-------------------
> >> >>  1 file changed, 18 insertions(+), 19 deletions(-)
> >> >>
> >> >> diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
> >> >> index 9c4a532..89adee4 100644
> >> >> --- a/drivers/staging/vt6655/rxtx.c
> >> >> +++ b/drivers/staging/vt6655/rxtx.c
> >> >> @@ -568,28 +568,27 @@ s_uFillDataHead(
> >> >>                                                                               wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
> >> >>                       buf->time_stamp_off = vnt_time_stamp_off(pDevice, wCurrentRate);
> >> >>                       return buf->duration;
> >> >> -             } else {
> >> >> -                     struct vnt_tx_datahead_ab *buf = pTxDataHead;
> >> >> -                     /* Get SignalField, ServiceField & Length */
> >> >> -                     vnt_get_phy_field(pDevice, cbFrameLength, wCurrentRate,
> >> >> -                                       byPktType, &buf->ab);
> >> >> -
> >> >> -                     if (is_pspoll) {
> >> >> -                             __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15));
> >> >> +             }
> >> >> +             struct vnt_tx_datahead_ab *buf = pTxDataHead;
> >> >
> >> > NEVER add a build warning with a patch.  That's a huge sign you did not
> >> > do it correctly :(
> >> >
> >> > Because of that, I can not take this change, sorry.  Please fix it up
> >> > and resend.
> >> >
> >> Which build warning is in this patch? (I apologise for adding it, and
> >> will fix it when I can locate the warning.)
> >
> > The one you get when you build the driver with this patch applied.  It
> > should be very obvious as there was not a build warning without this
> > patch :)
> 
> I have resent the patch as v4 (since I had 3 versions of the entire
> patchset already).
> This time, the build warnings were the usual 80-character limit ones
> (that were already there); I left those in. Is that okay?

The compiler (gcc) does not emit 80-character warnings, only checkpatch
does.  Are you _sure_ you are actually building the kernel changes you
are making?

thanks,

greg k-h


  reply	other threads:[~2018-03-28 18:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-24 11:59 [PATCH v3 1/5] staging: vt6655: Delete unused enum CARD_PKT_TYPE Nishka Dasgupta
2018-03-24 11:59 ` [PATCH v3 2/5] staging: vt6655: Delete unused typedef enum _CARD_STATUS_TYPE Nishka Dasgupta
2018-03-24 14:52   ` [Outreachy kernel] " Julia Lawall
2018-03-24 11:59 ` [PATCH v3 3/5] staging: vt6655: Delete unused typedef struct _version Nishka Dasgupta
2018-03-24 14:51   ` [Outreachy kernel] " Julia Lawall
2018-03-24 11:59 ` [PATCH v3 4/5] staging: vt6655: Delete unused typedef enum _chip_type Nishka Dasgupta
2018-03-24 14:49   ` [Outreachy kernel] " Julia Lawall
2018-03-24 11:59 ` [PATCH v3 5/5] staging: vt6655: Remove else after return statement Nishka Dasgupta
2018-03-28 11:57   ` Greg KH
2018-03-28 12:53     ` Nishka Dasgupta
2018-03-28 13:01       ` [Outreachy kernel] " Julia Lawall
2018-03-28 16:08       ` Greg KH
2018-03-28 17:30         ` Nishka Dasgupta
2018-03-28 18:04           ` Greg KH [this message]
2018-03-28 18:31             ` Nishka Dasgupta
2018-03-24 14:56 ` [Outreachy kernel] [PATCH v3 1/5] staging: vt6655: Delete unused enum CARD_PKT_TYPE 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=20180328180406.GA32098@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=forest@alittletooquiet.net \
    --cc=nishka.dasgupta_ug18@ashoka.edu.in \
    --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.