From: Pierre-Louis Bossart Date: Thu, 13 Aug 2020 17:58:35 +0000 (-0500) Subject: ASOC: SOF: Intel: hda-codec: move unused label to correct position X-Git-Tag: v5.9.6~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=689d2a4996d2b503daba1809ca534623e395429c;p=users%2Fdwmw2%2Flinux.git ASOC: SOF: Intel: hda-codec: move unused label to correct position commit 11ec0edc6408a739dffca34ebbbe921817c3b10e upstream. Cppcheck reports the following warning: sound/soc/sof/intel/hda-codec.c:191:1: style: Label 'error' is not used. [unusedLabel] This label is indeed only used conditionally, move it where it's actually used. Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20200813175839.59422-2-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c index c475955c6eeba..9500572c0e312 100644 --- a/sound/soc/sof/intel/hda-codec.c +++ b/sound/soc/sof/intel/hda-codec.c @@ -178,6 +178,11 @@ static int hda_codec_probe(struct snd_sof_dev *sdev, int address, } return ret; + +error: + snd_hdac_ext_bus_device_exit(hdev); + return -ENOENT; + #else hdev = devm_kzalloc(sdev->dev, sizeof(*hdev), GFP_KERNEL); if (!hdev)