RE: [PATCH net-next 6/7] mwifiex: Remove casts of pointer to same type

2014-03-24 Thread Bing Zhao
Hi Joe, Thanks for the patch. > 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

RE: [PATCH net-next 6/7] mwifiex: Remove casts of pointer to same type

2014-03-24 Thread Bing Zhao
Hi Joe, Thanks for the patch. 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 j...@perches.com