All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Namrata A Shettar <namrataashettar@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Malcolm Priestley <tvboxspy@gmail.com>,
	 Alison Schofield <amsfield22@gmail.com>,
	 maomao xu <albert008.xu@gmail.com>,
	Othmar Pasteka <pasteka@kabsi.at>,
	 Parth Sane <laerdevstudios@gmail.com>,
	 Wolfram Sang <wsa-dev@sang-engineering.com>,
	 outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] [PATCH 6/6] staging: vt6656: rxtx: Fix multiple assignments
Date: Thu, 15 Sep 2016 07:15:49 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.10.1609150714200.6078@hadrien> (raw)
In-Reply-To: <CAFrQyDGAP0UTFhwaidjYrcbijgtoP7jFWRxa2GZiouZ4dnzWcw@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2186 bytes --]



On Thu, 15 Sep 2016, Namrata A Shettar wrote:

> This patch fixes checkpatch issue of multiple assignments.

Fix is not very clear, because it is not very clear what a multiple
assignment is.  For example, it could be x = 3; x = 4;.  "Break up
multiple assignments" could be clearer.  Also, it is not necessary to say
"This patch".  The reader knows that the commit log is a description of a
patch.  He wants to get to the interesting part as quickly as possible.

julia

>
> Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
> ---
>  drivers/staging/vt6656/rxtx.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
> index a8553e3a..647220d 100644
> --- a/drivers/staging/vt6656/rxtx.c
> +++ b/drivers/staging/vt6656/rxtx.c
> @@ -166,8 +166,9 @@ static __le16 vnt_get_rtscts_rsvtime_le(struct
> vnt_private *priv,
>         } else if (rsv_type == 2) {
>                 rts_time = vnt_get_frame_time(priv->preamble_type, pkt_type,
>                         20, priv->top_ofdm_basic_rate);
> -               cts_time = ack_time =
> vnt_get_frame_time(priv->preamble_type,
> +               cts_time = vnt_get_frame_time(priv->preamble_type,
>                         pkt_type, 14, priv->top_ofdm_basic_rate);
> +               ack_time = cts_time;
>         } else if (rsv_type == 3) {
>                 cts_time = vnt_get_frame_time(priv->preamble_type, pkt_type,
>                         14, priv->top_cck_basic_rate);[cleardot.gif]
>
> --
> 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 visithttps://groups.google.com/d/msgid/outreachy-kernel/CAFrQyDGAP0UTFhwaidjYrcb
> ijgtoP7jFWRxa2GZiouZ4dnzWcw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

      reply	other threads:[~2016-09-15  5:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 22:16 [PATCH 6/6] staging: vt6656: rxtx: Fix multiple assignments Namrata A Shettar
2016-09-15  5:15 ` Julia Lawall [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=alpine.DEB.2.10.1609150714200.6078@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=albert008.xu@gmail.com \
    --cc=amsfield22@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=laerdevstudios@gmail.com \
    --cc=namrataashettar@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=pasteka@kabsi.at \
    --cc=tvboxspy@gmail.com \
    --cc=wsa-dev@sang-engineering.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.