Skip to content

Commit 1ae14f3

Browse files
Shenghao-Dingbroonie
authored andcommitted
ASoC: tas2781: Fix a warning reported by robot kernel test
Fix a warning reported by robot kernel test that 'fw_entry' in function 'tas2781_load_calibration' is used uninitialized with compiler sh4-linux-gcc (GCC) 13.2.0, an update of copyright and a correction of the comments. Fixes: ef3bcde ("ASoc: tas2781: Add tas2781 driver") Signed-off-by: Shenghao Ding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ba2a2c3 commit 1ae14f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/soc/codecs/tas2781-fmwlib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0
22
//
3-
// tasdevice-fmw.c -- TASDEVICE firmware support
3+
// tas2781-fmwlib.c -- TASDEVICE firmware support
44
//
5-
// Copyright 2023 Texas Instruments, Inc.
5+
// Copyright 2023 - 2024 Texas Instruments, Inc.
66
//
77
// Author: Shenghao Ding <[email protected]>
88

@@ -1878,7 +1878,7 @@ int tas2781_load_calibration(void *context, char *file_name,
18781878
{
18791879
struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context;
18801880
struct tasdevice *tasdev = &(tas_priv->tasdevice[i]);
1881-
const struct firmware *fw_entry;
1881+
const struct firmware *fw_entry = NULL;
18821882
struct tasdevice_fw *tas_fmw;
18831883
struct firmware fmw;
18841884
int offset = 0;

0 commit comments

Comments
 (0)