Re: [Qemu-devel] [PATCH 3/3] block: Drop some superfluous casts from void *

2014-06-01 Thread Markus Armbruster
Max Reitz writes: > On 30.05.2014 18:30, Markus Armbruster wrote: >> They clutter the code. Unfortunately, I can't figure out how to make >> Coccinelle drop all of them, so I have to settle for common special >> cases: >> >> @@ >> type T; >> T *pt; >> void *pv; >> @@ >>

Re: [Qemu-devel] [PATCH 3/3] block: Drop some superfluous casts from void *

2014-05-30 Thread Max Reitz
On 30.05.2014 18:30, Markus Armbruster wrote: They clutter the code. Unfortunately, I can't figure out how to make Coccinelle drop all of them, so I have to settle for common special cases: @@ type T; T *pt; void *pv; @@ - pt = (T *)pv; + pt = pv; @@

[Qemu-devel] [PATCH 3/3] block: Drop some superfluous casts from void *

2014-05-30 Thread Markus Armbruster
They clutter the code. Unfortunately, I can't figure out how to make Coccinelle drop all of them, so I have to settle for common special cases: @@ type T; T *pt; void *pv; @@ - pt = (T *)pv; + pt = pv; @@ type T; @@ - (T *) (\(g_malloc\|g_malloc0\