summaryrefslogtreecommitdiffstats
path: root/sound/ppc
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-06 13:41:19 +0200
committerTakashi Iwai <tiwai@suse.de>2016-09-07 20:35:29 +0200
commit44cc4a017e2df87f25765ac270f3f64efc6b06ef (patch)
treead55e8dffc16bc00492aab005320c870c22f384f /sound/ppc
parentALSA: pcm: Fix avail to return error if stream is suspended (diff)
downloadlinux-44cc4a017e2df87f25765ac270f3f64efc6b06ef.tar.xz
linux-44cc4a017e2df87f25765ac270f3f64efc6b06ef.zip
ALSA: squash lines for simple wrapper functions
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc')
-rw-r--r--sound/ppc/snd_ps3.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c
index 368242519279..b84d7d34f188 100644
--- a/sound/ppc/snd_ps3.c
+++ b/sound/ppc/snd_ps3.c
@@ -564,9 +564,7 @@ static int snd_ps3_pcm_hw_params(struct snd_pcm_substream *substream,
static int snd_ps3_pcm_hw_free(struct snd_pcm_substream *substream)
{
- int ret;
- ret = snd_pcm_lib_free_pages(substream);
- return ret;
+ return snd_pcm_lib_free_pages(substream);
};
static int snd_ps3_delay_to_bytes(struct snd_pcm_substream *substream,