ionic: use kcalloc for new arrays
authorShannon Nelson <snelson@pensando.io>
Thu, 27 Aug 2020 23:00:21 +0000 (16:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2020 15:01:30 +0000 (08:01 -0700)
commitee205626afa3960fb6353fd6c7a51522c5ce7686
tree876facccab995e88e690b4c55890bf57dd70fa63
parent9aa1c152eb44c28a7306bbb2597b32d8e1d65a49
ionic: use kcalloc for new arrays

Use kcalloc for allocating arrays of structures.

Following along after
commit e71642009cbdA ("ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()")
there are a couple more array allocations that can be converted
to using devm_kcalloc().

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c