ASoC: tas2781: Fix a warning reported by robot kernel test
BugLink: https://bugs.launchpad.net/bugs/2073603
[ Upstream commit 1ae14f3520b1a0ad144610a3f592c81a3e81cd1b ]
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: ef3bcde75d ("ASoc: tas2781: Add tas2781 driver")
Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://lore.kernel.org/r/20240505122346.1326-1-shenghao-ding@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Portia Stephens <portia.stephens@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
This commit is contained in:
committed by
Roxana Nicolescu
parent
68a9ae0e4b
commit
5ef8d939b7
@@ -1,8 +1,8 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
//
|
//
|
||||||
// tasdevice-fmw.c -- TASDEVICE firmware support
|
// tas2781-fmwlib.c -- TASDEVICE firmware support
|
||||||
//
|
//
|
||||||
// Copyright 2023 Texas Instruments, Inc.
|
// Copyright 2023 - 2024 Texas Instruments, Inc.
|
||||||
//
|
//
|
||||||
// Author: Shenghao Ding <shenghao-ding@ti.com>
|
// Author: Shenghao Ding <shenghao-ding@ti.com>
|
||||||
|
|
||||||
@@ -1878,7 +1878,7 @@ int tas2781_load_calibration(void *context, char *file_name,
|
|||||||
{
|
{
|
||||||
struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context;
|
struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context;
|
||||||
struct tasdevice *tasdev = &(tas_priv->tasdevice[i]);
|
struct tasdevice *tasdev = &(tas_priv->tasdevice[i]);
|
||||||
const struct firmware *fw_entry;
|
const struct firmware *fw_entry = NULL;
|
||||||
struct tasdevice_fw *tas_fmw;
|
struct tasdevice_fw *tas_fmw;
|
||||||
struct firmware fmw;
|
struct firmware fmw;
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user