diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2021-03-12 12:22:33 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-18 13:50:43 +0000 |
commit | 3c011ef344cddd15be0a9b2256f7886f6b5eeec5 (patch) | |
tree | b741a719af81a423f89ebee472e3caf5f61b9d50 | |
parent | 997994d7e6fab713d1c03843c9698919e64cc135 (diff) | |
download | linux-3c011ef344cddd15be0a9b2256f7886f6b5eeec5.tar.gz linux-3c011ef344cddd15be0a9b2256f7886f6b5eeec5.tar.bz2 linux-3c011ef344cddd15be0a9b2256f7886f6b5eeec5.zip |
ASoC: hdmi-codec: remove useless initialization
Fix cppcheck warning:
sound/soc/codecs/hdmi-codec.c:745:5: style: Redundant initialization
for 'cf'. The initialized value is overwritten before it is
read. [redundantInitialization]
cf = dai->playback_dma_data;
^
sound/soc/codecs/hdmi-codec.c:738:31: note: cf is initialized
struct hdmi_codec_daifmt *cf = dai->playback_dma_data;
^
sound/soc/codecs/hdmi-codec.c:745:5: note: cf is overwritten
cf = dai->playback_dma_data;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210312182246.5153-11-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/hdmi-codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 422539f933de..83e74ddccf59 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound/soc/codecs/hdmi-codec.c @@ -735,7 +735,7 @@ static int hdmi_codec_set_jack(struct snd_soc_component *component, static int hdmi_dai_spdif_probe(struct snd_soc_dai *dai) { - struct hdmi_codec_daifmt *cf = dai->playback_dma_data; + struct hdmi_codec_daifmt *cf; int ret; ret = hdmi_dai_probe(dai); |