[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120604.114533.1720204611284591292.davem@davemloft.net>
Date: Mon, 04 Jun 2012 11:45:33 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: joe@...ches.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: Remove casts to same type
From: Joe Perches <joe@...ches.com>
Date: Sun, 3 Jun 2012 20:41:40 -0700
> Adding casts of objects to the same type is unnecessary
> and confusing for a human reader.
>
> For example, this cast:
>
> int y;
> int *p = (int *)&y;
>
> 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
>
> Signed-off-by: Joe Perches <joe@...ches.com>
Applied to net-next, thanks Joe.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists