]> git.baikalelectronics.ru Git - kernel.git/commit
otx2_common: Use devm_kcalloc() in otx2_config_npa()
authorXu Wang <vulab@iscas.ac.cn>
Mon, 17 Aug 2020 02:04:13 +0000 (02:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2020 22:08:39 +0000 (15:08 -0700)
commit3afd4d867c32a25eed0082063405e562c8a1dd13
tree21d1f141887b7d840236680114ab3cbe60829098
parentf1c93bf15bc01852ebb0aff4e103aab744c7f58f
otx2_common: Use devm_kcalloc() in otx2_config_npa()

A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "devm_kcalloc".

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c