All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 5/8] Staging: iio: Remove parentheses around right side an assignment
Date: Mon, 16 Mar 2015 16:11:05 +0100	[thread overview]
Message-ID: <20150316151105.GA20104@kroah.com> (raw)
In-Reply-To: <1426268842-7889-1-git-send-email-hamohammed.sa@gmail.com>

On Fri, Mar 13, 2015 at 08:47:22PM +0300, Haneen Mohammed wrote:
> Parentheses are not needed around the right hand side of an assignment.
> This patch remove parenthese of such occurenses. Issue was detected and
> solved using the following coccinelle script:
> 
> @rule1@
> identifier x, y, z;
> expression E1, E2;
> @@
> 
> (
> x = (y == z);
> |
> x = (E1 == E2);
> |
>  x =
> -(
> ...
> -)
>  ;
> )
> 
> Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
> ---
>  drivers/staging/iio/accel/adis16240_core.c | 2 +-
>  drivers/staging/iio/light/tsl2x7x_core.c   | 4 ++--
>  drivers/staging/iio/meter/ade7753.c        | 2 +-
>  drivers/staging/iio/meter/ade7754.c        | 2 +-
>  drivers/staging/iio/meter/ade7759.c        | 2 +-
>  5 files changed, 6 insertions(+), 6 deletions(-)

This does not apply to my tree, I think someone else did this right
before you did :(


  reply	other threads:[~2015-03-16 15:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13 17:14 [PATCH 2/8] Staging: rtl8192e: Remove parentheses around right side an assignment Haneen Mohammed
2015-03-13 20:35 ` [Outreachy kernel] " Julia Lawall
2015-03-13 17:30   ` Haneen
2015-03-13 17:45   ` [PATCH 3/8] Staging: rtl8723au: " Haneen Mohammed
2015-03-13 17:46     ` [PATCH 4/8] Staging: media: " Haneen Mohammed
2015-03-13 17:47     ` [PATCH 5/8] Staging: iio: " Haneen Mohammed
2015-03-16 15:11       ` Greg KH [this message]
2015-03-13 17:48     ` [PATCH 6/8] Staging: lustre: " Haneen Mohammed
2015-03-13 17:50     ` [PATCH 7/8] Staging: rtl8192u: " Haneen Mohammed
2015-03-13 21:18       ` [Outreachy kernel] " Julia Lawall
2015-03-13 17:51     ` [PATCH 8/8] Staging: ft1000: " Haneen Mohammed

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=20150316151105.GA20104@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=hamohammed.sa@gmail.com \
    --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.