]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabdd2cdb471c326d30a6a4baae20c65b04364fbc
tree876facccab995e88e690b4c55890bf57dd70fa63
parent8c73ec6f8fae1adb31eec24cc68269422005c038
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