Skip to content

Commit

Permalink
ASoC: qcom: lpass-platform: remove useless assignment
Browse files Browse the repository at this point in the history
cppcheck warning:

sound/soc/qcom/lpass-platform.c:791:10: style: Variable 'ret' is
assigned a value that is never used. [unreadVariable]
 int ret = -EINVAL;
         ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210218222916.89809-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Pierre-Louis Bossart authored and Mark Brown committed Mar 10, 2021
1 parent 8106efd commit 6429870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/qcom/lpass-platform.c
Original file line number Diff line number Diff line change
@@ -788,7 +788,7 @@ static int lpass_platform_pcm_new(struct snd_soc_component *component,
{
struct snd_pcm *pcm = soc_runtime->pcm;
struct snd_pcm_substream *psubstream, *csubstream;
int ret = -EINVAL;
int ret;
size_t size = lpass_platform_pcm_hardware.buffer_bytes_max;

psubstream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;

0 comments on commit 6429870

Please sign in to comment.