summaryrefslogtreecommitdiff
path: root/sound/ppc
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-07-10 05:39:46 +0300
committerTakashi Iwai <tiwai@suse.de>2019-07-10 12:53:31 +0300
commit73948ca0571325aafd925497c1c37f6b09ed1724 (patch)
treed3a184f0d9205f43d2e6dca532cc1c5eeef8d66c /sound/ppc
parent7a3c2b69386102de9e78fa9ea679898f5502f77d (diff)
downloadlinux-73948ca0571325aafd925497c1c37f6b09ed1724.tar.xz
ALSA: ps3: Remove Unneeded variable: "ret"
This patch fixes below issue reported by coccicheck sound/ppc/snd_ps3.c:631:5-8: Unneeded variable: "ret". Return "0" on line 668 Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc')
-rw-r--r--sound/ppc/snd_ps3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c
index 71b7fd344c58..c213eb7ca23c 100644
--- a/sound/ppc/snd_ps3.c
+++ b/sound/ppc/snd_ps3.c
@@ -628,7 +628,6 @@ static int snd_ps3_pcm_trigger(struct snd_pcm_substream *substream,
int cmd)
{
struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream);
- int ret = 0;
switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
@@ -665,7 +664,7 @@ static int snd_ps3_pcm_trigger(struct snd_pcm_substream *substream,
}
- return ret;
+ return 0;
};
/*