[Cocci] Coccinelle: kzalloc-simple: Add more zero allocating functions
julia.lawall at lip6.fr
Wed Dec 27 10:42:53 CET 2017
On Wed, 27 Dec 2017, SF Markus Elfring wrote:
> >>> - x = (T)kmalloc(E1,E2);
> >>> + x = (T)kzalloc(E1,E2);
> >>> This for useless pointer cast which is done implicitily.
> >> Actually, the above rule is for the case where the cast is useful.
> * Have you got any special aspects in mind here?
> * How do you think about to restrict it for pointer data types?
The cast is useful when it is to a non-pointer type.
More information about the Cocci