diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-07-10 08:09:46 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-07-10 11:53:31 +0200 |
commit | 73948ca0571325aafd925497c1c37f6b09ed1724 (patch) | |
tree | d3a184f0d9205f43d2e6dca532cc1c5eeef8d66c /sound/ppc | |
parent | 7a3c2b69386102de9e78fa9ea679898f5502f77d (diff) | |
download | lwn-73948ca0571325aafd925497c1c37f6b09ed1724.tar.gz lwn-73948ca0571325aafd925497c1c37f6b09ed1724.zip |
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.c | 3 |
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; }; /* |