Skip to content

Commit 0b06000

Browse files
Shenghao-Dingbroonie
authored andcommitted
ASoC: tas2781: drop a redundant code
Report from internal ticket, priv->cali_data.data devm_kzalloc twice, drop the first one, it is the unnecessary one. Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> Link: https://patch.msgid.link/20250206123808.1590-1-shenghao-ding@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 33b7dc7 commit 0b06000

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/soc/codecs/tas2781-i2c.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// ALSA SoC Texas Instruments TAS2563/TAS2781 Audio Smart Amplifier
44
//
5-
// Copyright (C) 2022 - 2024 Texas Instruments Incorporated
5+
// Copyright (C) 2022 - 2025 Texas Instruments Incorporated
66
// https://www.ti.com
77
//
88
// The TAS2563/TAS2781 driver implements a flexible and configurable
@@ -1260,8 +1260,6 @@ static int tasdevice_create_cali_ctrls(struct tasdevice_priv *priv)
12601260
(cali_data->cali_dat_sz_per_dev + 1) + 1 + 15 + 1;
12611261
priv->cali_data.total_sz = priv->ndev *
12621262
(cali_data->cali_dat_sz_per_dev + 1);
1263-
priv->cali_data.data = devm_kzalloc(priv->dev,
1264-
ext_cali_data->max, GFP_KERNEL);
12651263
cali_ctrls[i].name = cali_name;
12661264
cali_ctrls[i].iface = SNDRV_CTL_ELEM_IFACE_MIXER;
12671265
cali_ctrls[i].info = snd_soc_bytes_info_ext;

0 commit comments

Comments
 (0)