From: Joe Perches <joe@perches.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: Remove casts to same type
Date: Mon, 04 Jun 2012 08:52:08 -0700 [thread overview]
Message-ID: <1338825128.8574.15.camel@joe2Laptop> (raw)
In-Reply-To: <20120604.114533.1720204611284591292.davem@davemloft.net>
On Mon, 2012-06-04 at 11:45 -0400, David Miller wrote:
> From: Joe Perches <joe@perches.com>
> > Adding casts of objects to the same type is unnecessary
> > and confusing for a human reader.
[]
> > I used the coccinelle script below to find and remove these
> > unnecessary casts. I manually removed the conversions this
> > script produces of casts with __force and __user.
> >
> > @@
> > type T;
> > T *p;
> > @@
> >
> > - (T *)p
> > + p
> Applied to net-next, thanks Joe.
Do you want the same thing for drivers/net?
It's pretty big and might be better broken into
commits by maintainer/directory.
next prev parent reply other threads:[~2012-06-04 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 3:41 [PATCH] net: Remove casts to same type Joe Perches
2012-06-04 15:45 ` David Miller
2012-06-04 15:52 ` Joe Perches [this message]
2012-06-04 15:53 ` David Miller
2012-06-04 16:04 ` Ben Hutchings
2012-06-04 17:16 ` [PATCH] net/9p: Add __force to cast of __user pointer Joe Perches
2012-06-04 18:12 ` David Miller
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=1338825128.8574.15.camel@joe2Laptop \
--to=joe@perches.com \
--cc=davem@davemloft.net \
--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;
as well as URLs for NNTP newsgroup(s).