Re: [iproute PATCH v4 3/5] Replace malloc && memset by calloc

2016-07-15 Thread David Ahern
On 7/13/16 12:47 PM, Phil Sutter wrote: This only replaces occurrences where the newly allocated memory is cleared completely afterwards, as in other cases it is a theoretical performance hit although code would be cleaner this way. Signed-off-by: Phil Sutter --- Changes since v2: - Fix checkpa

[iproute PATCH v4 3/5] Replace malloc && memset by calloc

2016-07-13 Thread Phil Sutter
This only replaces occurrences where the newly allocated memory is cleared completely afterwards, as in other cases it is a theoretical performance hit although code would be cleaner this way. Signed-off-by: Phil Sutter --- Changes since v2: - Fix checkpatch errors. --- genl/genl.c| 3 +