Skip to contentSkip to conversation

Remove unneeded casts of memory-alloc function return values

PATCH In review Firo Yang 2 participants 2 messages Apr 23, 2015 Kernel janitors

lore
Share & tools
lore

Firo Yang

author
#0 lore raw

cover Remove unneeded casts of memory-alloc function return values

The memory-alloc() functions return a void pointer, so when assigning to a pointer type variable there is no need to cast the return value.

#1 lore raw
Quoted 3 lines · Firo Yang

The memory-alloc() functions return a void pointer, so when assigning to a pointer type variable there is no need to cast the return value.

If you used a tool to find these, it would be nice to give credit to that tool.

julia

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html