[dpdk-dev] [PATCH 1/6] test: remove unneeded casts

2015-03-04 Thread Thomas Monjalon
2015-02-19 14:53, Bruce Richardson: > On Sat, Feb 14, 2015 at 09:59:05AM -0500, Stephen Hemminger wrote: > > The malloc family returns void * and therefore cast is unnecessary. > > Use calloc rather than zmalloc with multiply for array. > > > > Signed-off-by: Stephen Hemminger > > Looks like a g

[dpdk-dev] [PATCH 1/6] test: remove unneeded casts

2015-02-19 Thread Bruce Richardson
On Sat, Feb 14, 2015 at 09:59:05AM -0500, Stephen Hemminger wrote: > The malloc family returns void * and therefore cast is unnecessary. > Use calloc rather than zmalloc with multiply for array. > > Signed-off-by: Stephen Hemminger Looks like a good basic cleanup Acked-by: Bruce Richardson >

[dpdk-dev] [PATCH 1/6] test: remove unneeded casts

2015-02-14 Thread Stephen Hemminger
The malloc family returns void * and therefore cast is unnecessary. Use calloc rather than zmalloc with multiply for array. Signed-off-by: Stephen Hemminger --- app/test/test_hash_perf.c | 8 app/test/test_mempool.c | 2 +- app/test/test_ring.c | 2 +- 3 files changed, 6 insertio