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.