From: Haneen <hamohammed.sa@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 2/8] Staging: rtl8192e: Remove parentheses around right side an assignment
Date: Fri, 13 Mar 2015 20:30:41 +0300 [thread overview]
Message-ID: <20150313173040.GA7432@haneen-vb> (raw)
In-Reply-To: <alpine.DEB.2.02.1503132132180.2065@localhost6.localdomain6>
On Fri, Mar 13, 2015 at 09:35:42PM +0100, Julia Lawall wrote:
> Your mail has a strange reply to address: 20150313165321.GA6657@haneen-vb
>
I have noticed that and I am trying to resolve this issue
> > diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
> > index cd3c662..e208203 100644
> > --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
> > +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
> > @@ -89,8 +89,8 @@ void rtl8192_setBBreg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask,
> > if (dwBitMask != bMaskDWord) {
> > OriginalValue = read_nic_dword(dev, dwRegAddr);
> > BitShift = rtl8192_CalculateBitShift(dwBitMask);
> > - NewValue = (((OriginalValue) & (~dwBitMask)) |
> > - (dwData << BitShift));
> > + NewValue = ((OriginalValue) & (~dwBitMask)) |
> > + (dwData << BitShift);
>
> There are more unneeded parentheses here, on OriginalValue and ~dwBitMask.
> You can use Coccinelle to address this problem as well.
>
> julia
Alright. Thanks!
Haneen
next prev parent reply other threads:[~2015-03-13 20:42 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 [this message]
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 ` [Outreachy kernel] " Greg KH
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=20150313173040.GA7432@haneen-vb \
--to=hamohammed.sa@gmail.com \
--cc=alpine.DEB.2.02.1503132132180.2065@localhost6.localdomain6 \
--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.