ASoC: ti: j721e-evm: Use devm_kcalloc() instead of devm_kzalloc()
Use 2-factor multiplication argument form devm_kcalloc() instead of devm_kzalloc(). Link: https://github.com/KSPP/linux/issues/162 Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com> Signed-off-by: Erick Archer <erick.archer@gmx.com> Link: https://msgid.link/r/20240109181101.3806-1-erick.archer@gmx.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9423d7b9ed
commit
be69eae967
@ -649,7 +649,7 @@ static int j721e_soc_probe_cpb(struct j721e_priv *priv, int *link_idx,
|
||||
* Link 2: McASP10 <- pcm3168a_1 ADC
|
||||
*/
|
||||
comp_count = 6;
|
||||
compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent),
|
||||
compnent = devm_kcalloc(priv->dev, comp_count, sizeof(*compnent),
|
||||
GFP_KERNEL);
|
||||
if (!compnent) {
|
||||
ret = -ENOMEM;
|
||||
@ -763,7 +763,7 @@ static int j721e_soc_probe_ivi(struct j721e_priv *priv, int *link_idx,
|
||||
* \ pcm3168a_b ADC
|
||||
*/
|
||||
comp_count = 8;
|
||||
compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent),
|
||||
compnent = devm_kcalloc(priv->dev, comp_count, sizeof(*compnent),
|
||||
GFP_KERNEL);
|
||||
if (!compnent) {
|
||||
ret = -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user