Thread (7 messages) 7 messages, 3 authors, 2012-06-06

Re: [PATCH net-next 0/3] Remove casts to same type

flat view

From: Joe Perches <joe@perches.com>
Date: 2012-06-05 04:54:30

On Mon, 2012-06-04 at 22:48 -0600, Jim Cromie wrote:
On Mon, Jun 4, 2012 at 4:44 PM, Joe Perches [off-list ref] wrote:
quoted
Adding casts of objects to the same type is unnecessary
and confusing for a human reader.
Remove them via coccinelle script.
Can you also post the coccinelle script ?
Hi Jim.

I did that with each patch, but here it is again:

$ cat norecast.cocci
@@
type T;
T *p;
@@

-       (T *)p
+       p
$
did you have to edit them any futher, or is it 100% script ?
Also from each patch:

I manually removed the conversions this script produces of
casts with __force, __iomem and __user.

Also, I did delete a few unnecessary parentheses left over
after the casts were removed.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help