From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: Joe Perches <joe@perches.com>
Cc: netdev@vger.kernel.org,
Jesse Brandeburg <jesse.brandeburg@intel.com>,
Bruce Allan <bruce.w.allan@intel.com>,
Carolyn Wyborny <carolyn.wyborny@intel.com>,
Don Skidmore <donald.c.skidmore@intel.com>,
Greg Rose <gregory.v.rose@intel.com>,
Alex Duyck <alexander.h.duyck@intel.com>,
John Ronciak <john.ronciak@intel.com>,
Mitch Williams <mitch.a.williams@intel.com>,
e1000-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 3/7] intel: Remove casts of pointer to same type
Date: Mon, 24 Mar 2014 13:20:50 -0700 [thread overview]
Message-ID: <1395692450.2899.1.camel@jtkirshe-mobl.jf.intel.com> (raw)
In-Reply-To: <9e1ace2dfe6b14005e66c914b4905efb3eadd18e.1395692043.git.joe@perches.com>
[-- Attachment #1: Type: text/plain, Size: 511 bytes --]
On Mon, 2014-03-24 at 13:15 -0700, Joe Perches wrote:
> Casting a pointer to a pointer of the same type is pointless,
> so remove these unnecessary casts.
>
> Done via coccinelle script:
>
> $ cat typecast_2.cocci
> @@
> type T;
> T *foo;
> @@
>
> - (T *)foo
> + foo
>
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks Jow, I will add this to my queue.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-03-24 20:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-24 20:15 [PATCH net-next 0/7] drivers/net: Remove pointer casts " Joe Perches
2014-03-24 20:15 ` [PATCH net-next 1/7] altera: Remove casts of pointer " Joe Perches
2014-03-24 23:36 ` Vince Bridgers
2014-03-26 19:47 ` David Miller
2014-03-24 20:15 ` [PATCH net-next 2/7] alx: " Joe Perches
2014-03-26 19:47 ` David Miller
2014-03-24 20:15 ` [PATCH net-next 3/7] intel: " Joe Perches
2014-03-24 20:20 ` Jeff Kirsher [this message]
2014-03-24 20:15 ` [PATCH net-next 4/7] qlcnic: " Joe Perches
2014-03-25 5:50 ` Shahed Shaikh
2014-03-26 19:47 ` David Miller
2014-03-24 20:15 ` [PATCH net-next 5/7] carl9170: " Joe Perches
2014-03-24 20:15 ` [PATCH net-next 6/7] mwifiex: " Joe Perches
2014-03-24 22:23 ` Bing Zhao
2014-03-24 20:15 ` [PATCH net-next 7/7] rtlwifi: " Joe Perches
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=1395692450.2899.1.camel@jtkirshe-mobl.jf.intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=alexander.h.duyck@intel.com \
--cc=bruce.w.allan@intel.com \
--cc=carolyn.wyborny@intel.com \
--cc=donald.c.skidmore@intel.com \
--cc=e1000-devel@lists.sourceforge.net \
--cc=gregory.v.rose@intel.com \
--cc=jesse.brandeburg@intel.com \
--cc=joe@perches.com \
--cc=john.ronciak@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mitch.a.williams@intel.com \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®