diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-01-13 15:10:25 -0600 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-01-14 12:02:29 +0530 |
commit | 78f6fdd6161f6b5a8fc13b8b0def923437a61a7f (patch) | |
tree | 54c7da3b5a7e9a5f989c10a5437a56d22986c214 /drivers/soundwire | |
parent | 39737a313085fac13ea9e3cbc8b3dda193415933 (diff) | |
download | linux-stable-78f6fdd6161f6b5a8fc13b8b0def923437a61a7f.tar.gz linux-stable-78f6fdd6161f6b5a8fc13b8b0def923437a61a7f.tar.bz2 linux-stable-78f6fdd6161f6b5a8fc13b8b0def923437a61a7f.zip |
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.c | 2 |
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; |