Skip to content

Commit

Permalink
Merge branch 'fix/compress' of https://git.kernel.org/pub/scm/linux/k…
Browse files Browse the repository at this point in the history
…ernel/git/broonie/sound into asoc-compress
  • Loading branch information
broonie committed Jan 26, 2018
2 parents e5acfc7 + 290df4d commit 2f75ab7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/soc/soc-compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ static int soc_compr_copy(struct snd_compr_stream *cstream,
struct snd_soc_platform *platform = rtd->platform;
struct snd_soc_component *component;
struct snd_soc_rtdcom_list *rtdcom;
int ret = 0, __ret;
int ret = 0;

mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass);

Expand All @@ -965,10 +965,10 @@ static int soc_compr_copy(struct snd_compr_stream *cstream,
!component->driver->compr_ops->copy)
continue;

__ret = component->driver->compr_ops->copy(cstream, buf, count);
if (__ret < 0)
ret = __ret;
ret = component->driver->compr_ops->copy(cstream, buf, count);
break;
}

err:
mutex_unlock(&rtd->pcm_mutex);
return ret;
Expand Down

0 comments on commit 2f75ab7

Please sign in to comment.