From: Arnd Bergmann <arnd@arndb.de>
To: outreachy-kernel@googlegroups.com
Cc: Shivani Bhardwaj <shivanib134@gmail.com>
Subject: Re: [Outreachy kernel] [PATCH v2 1/3] Staging: wilc1000: host_interface: Remove extra NULL test
Date: Mon, 12 Oct 2015 20:50:54 +0200 [thread overview]
Message-ID: <5343370.v9SSDYu64C@wuerfel> (raw)
In-Reply-To: <3f3303356a62e08e17ffde7cdc8531d5b1fd34bc.1444670615.git.shivanib134@gmail.com>
On Monday 12 October 2015 23:02:01 Shivani Bhardwaj wrote:
> Remove NULL test statement as it is preceded by another NULL test on the
> same variable in the code.
> Issue found using coccinelle.
>
> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
> ---
> Changes in v2:
> Deleted one patch and added another. Improved the other ones.
> drivers/staging/wilc1000/host_interface.c | 3 ---
> 1 file changed, 3 deletions(-)
In the text above, it makes sense to provide an abbreviated
version of the semantic patch when you send something that was
generated by coccinelle.
> diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
> index bb833d3..5e4d620 100644
> --- a/drivers/staging/wilc1000/host_interface.c
> +++ b/drivers/staging/wilc1000/host_interface.c
> @@ -6044,12 +6044,9 @@ s32 host_int_deinit(tstrWILC_WFIDrv *hWFIDrv)
> if (ret)
> s32Error = -ENOENT;
>
> - if (pstrWFIDrv != NULL) {
> kfree(pstrWFIDrv);
> /* pstrWFIDrv=NULL; */
>
> - }
> -
Now the indentation of the kfree() is wrong, it needs to go one tabstop
to the left. Also, the comment behind it can be removed in the same
patch.
Arnd
next prev parent reply other threads:[~2015-10-12 18:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 17:30 [PATCH v2 0/3] Fix issues detected by coccinelle Shivani Bhardwaj
2015-10-12 17:32 ` [PATCH v2 1/3] Staging: wilc1000: host_interface: Remove extra NULL test Shivani Bhardwaj
2015-10-12 18:00 ` [Outreachy kernel] " Daniel Baluta
2015-10-12 18:50 ` Arnd Bergmann [this message]
2015-10-12 18:52 ` Shivani Bhardwaj
2015-10-12 17:32 ` [PATCH v2 2/3] Staging: wilc1000: host_interface: Remove useless cast Shivani Bhardwaj
2015-10-12 18:49 ` [Outreachy kernel] " Arnd Bergmann
2015-10-12 18:51 ` Shivani Bhardwaj
2015-10-12 19:34 ` Julia Lawall
2015-10-12 19:28 ` Julia Lawall
2015-10-12 19:47 ` Shivani Bhardwaj
2015-10-12 17:33 ` [PATCH v2 3/3] Staging: wilc1000: host_interface: Remove unused code Shivani Bhardwaj
2015-10-12 18:47 ` [Outreachy kernel] " Arnd Bergmann
2015-10-12 19:26 ` 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=5343370.v9SSDYu64C@wuerfel \
--to=arnd@arndb.de \
--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.