From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Shivani Bhardwaj <shivanib134@gmail.com>
Cc: outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] [PATCH v2] Staging: rtl8723au: rtw_xmit: Remove unnecessary tests
Date: Thu, 15 Oct 2015 12:52:11 +0530 [thread overview]
Message-ID: <20151015072210.GF3134@sudip-pc> (raw)
In-Reply-To: <CAKHNQQGOs9OPBZi6Eoy3t7R1ybZf5kmnTUJx9JRxGTmhAhmCjg@mail.gmail.com>
On Thu, Oct 15, 2015 at 12:39:05PM +0530, Shivani Bhardwaj wrote:
> On Thu, Oct 15, 2015 at 12:17 PM, Sudip Mukherjee
> <sudipm.mukherjee@gmail.com> wrote:
> > On Wed, Oct 14, 2015 at 04:02:56PM +0530, Shivani Bhardwaj wrote:
> >> The variables which are preceded by NULL tests on them should not be
> >> checked again.
> >> Semantic patch used:
> >> @@ expression E;
> >> statement S1, S2, S3; @@
> >> if(E==NULL) {... return ...;}
> >> else S1
> >> - if(E==NULL)
> >> S2
> >> - else S3
> >>
> >> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
> >> ---
> >> Changes in v2:
> >> -Correct the semantic patch and make commit message better.
> >>
> >> drivers/staging/rtl8723au/core/rtw_xmit.c | 9 ---------
> >> 1 file changed, 9 deletions(-)
> >>
> >> diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c b/drivers/staging/rtl8723au/core/rtw_xmit.c
> >> index a4b6bb6..0ea521b 100644
> >> --- a/drivers/staging/rtl8723au/core/rtw_xmit.c
> >> +++ b/drivers/staging/rtl8723au/core/rtw_xmit.c
> >> @@ -667,7 +667,6 @@ static int xmitframe_addmic(struct rtw_adapter *padapter,
> >>
> >> if (pattrib->encrypt == WLAN_CIPHER_SUITE_TKIP) {
> >> /* encode mic code */
> >> - if (stainfo) {
> >> u8 null_key[16]={0x0, 0x0, 0x0, 0x0,
> >> 0x0, 0x0, 0x0, 0x0,
> >> 0x0, 0x0, 0x0, 0x0,
> >
> > Now this indention is looking wrong.
> >
> > regards
> > sudip
> Is it also supposed to be a part of the same patch or a series should be made?
same patch as that indention problem is caused as "if (stainfo) {" is
removed. But can the cocci script handle that? maybe you need to modify
the indention by hand, and mention that in the commit message.
regards
sudip
next prev parent reply other threads:[~2015-10-15 7:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 10:32 [PATCH v2] Staging: rtl8723au: rtw_xmit: Remove unnecessary tests Shivani Bhardwaj
2015-10-15 6:47 ` [Outreachy kernel] " Sudip Mukherjee
2015-10-15 7:09 ` Shivani Bhardwaj
2015-10-15 7:22 ` Sudip Mukherjee [this message]
2015-10-15 7:45 ` Shivani Bhardwaj
2015-10-15 7:47 ` Julia Lawall
2015-10-15 7:50 ` Shivani Bhardwaj
2015-10-15 16:11 ` 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=20151015072210.GF3134@sudip-pc \
--to=sudipm.mukherjee@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
--cc=shivanib134@gmail.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.