summaryrefslogtreecommitdiff
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-01-14 00:10:25 +0300
committerVinod Koul <vkoul@kernel.org>2020-01-14 09:32:29 +0300
commit78f6fdd6161f6b5a8fc13b8b0def923437a61a7f (patch)
tree54c7da3b5a7e9a5f989c10a5437a56d22986c214 /drivers/soundwire
parent39737a313085fac13ea9e3cbc8b3dda193415933 (diff)
downloadlinux-78f6fdd6161f6b5a8fc13b8b0def923437a61a7f.tar.xz
soundwire: cadence: remove useless variable incrementation
Fix cppcheck warning: drivers/soundwire/cadence_master.c:992:9: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] offset += stream->num_out; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200113211025.27973-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r--drivers/soundwire/cadence_master.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c
index 85c60850c18a..12d3ac56e01b 100644
--- a/drivers/soundwire/cadence_master.c
+++ b/drivers/soundwire/cadence_master.c
@@ -989,8 +989,6 @@ int sdw_cdns_pdi_init(struct sdw_cdns *cdns,
ret = cdns_allocate_pdi(cdns, &stream->out,
stream->num_out, offset);
- offset += stream->num_out;
-
if (ret)
return ret;