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)
commitbf2bcd6f1a8822ea45465f86d705951725883ee8
tree21d1f141887b7d840236680114ab3cbe60829098
parent8dfddfb79653df7c38a9c8c4c034f242a36acee9
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