diff options
| author | Mark Brown <broonie@kernel.org> | 2020-04-14 15:45:37 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2020-04-14 15:45:37 +0100 |
| commit | 3c9432d1efc93ae0b3b2b3fa4dabdcfd8f65d8e6 (patch) | |
| tree | b397701733264471ebfa90754e8d4da205ad31f4 /sound/soc/sof/intel/hda-codec.c | |
| parent | 41d5d7b330b0a7b9b24aa7bfc61fdc9cfb64d27a (diff) | |
| parent | 805a23de2657c10c2ca96588a309a42df947bb36 (diff) | |
Merge series "ASoC: SOF: trivial code cleanups" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
Fix warnings reported by tools - no functionality change.
Payal Kshirsagar (2):
ASoC: SOF: remove unneeded variables
ASoC: SOF: Intel: hda: remove unnecessary parentheses
sound/soc/sof/intel/hda-codec.c | 5 +----
sound/soc/sof/intel/hda-dsp.c | 8 ++++----
sound/soc/sof/nocodec.c | 6 ++----
3 files changed, 7 insertions(+), 12 deletions(-)
base-commit: dd8e871d4e560eeb8d22af82dde91457ad835a63
--
2.20.1
Diffstat (limited to 'sound/soc/sof/intel/hda-codec.c')
| -rw-r--r-- | sound/soc/sof/intel/hda-codec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c index 3041fbbb010a..7e7e296a3953 100644 --- a/sound/soc/sof/intel/hda-codec.c +++ b/sound/soc/sof/intel/hda-codec.c @@ -207,7 +207,6 @@ EXPORT_SYMBOL_NS(hda_codec_i915_init, SND_SOC_SOF_HDA_AUDIO_CODEC_I915); int hda_codec_i915_exit(struct snd_sof_dev *sdev) { struct hdac_bus *bus = sof_to_bus(sdev); - int ret; if (!bus->audio_component) return 0; @@ -215,9 +214,7 @@ int hda_codec_i915_exit(struct snd_sof_dev *sdev) /* power down unconditionally */ snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, false); - ret = snd_hdac_i915_exit(bus); - - return ret; + return snd_hdac_i915_exit(bus); } EXPORT_SYMBOL_NS(hda_codec_i915_exit, SND_SOC_SOF_HDA_AUDIO_CODEC_I915); |
