diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2021-12-24 03:10:33 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-24 15:06:49 +0100 |
commit | 9283b6f923f3bdd92bdeaf259c6b7a5e9dac6900 (patch) | |
tree | fffaaa923ba6ff90ece166dd9b03cce61f3a5bc3 /drivers/soundwire/intel.c | |
parent | ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio (diff) | |
download | linux-9283b6f923f3bdd92bdeaf259c6b7a5e9dac6900.tar.xz linux-9283b6f923f3bdd92bdeaf259c6b7a5e9dac6900.zip |
soundwire: intel: remove unnecessary init
cppcheck warning:
drivers/soundwire/intel.c:1487:10: style: Variable 'ret' is assigned a
value that is never used. [unreadVariable]
int ret = 0;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-By: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20211224021034.26635-7-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/soundwire/intel.c')
-rw-r--r-- | drivers/soundwire/intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 70d164372a2b..0d1c86e6ac2e 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -1613,7 +1613,7 @@ static int __maybe_unused intel_pm_prepare(struct device *dev) struct sdw_intel *sdw = cdns_to_intel(cdns); struct sdw_bus *bus = &cdns->bus; u32 clock_stop_quirks; - int ret = 0; + int ret; if (bus->prop.hw_disabled || !sdw->startup_done) { dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n", |