projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a3c2b6
)
ALSA: ps3: Remove Unneeded variable: "ret"
author
Hariprasad Kelam
<hariprasad.kelam@gmail.com>
Wed, 10 Jul 2019 02:39:46 +0000
(08:09 +0530)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 10 Jul 2019 09:53:31 +0000
(11:53 +0200)
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>
sound/ppc/snd_ps3.c
patch
|
blob
|
history
diff --git
a/sound/ppc/snd_ps3.c
b/sound/ppc/snd_ps3.c
index 71b7fd344c58022e5306d1744349eb80771daec3..c213eb7ca23c77c5c1be2c5c1715e9159a87db7c 100644
(file)
--- 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
;
};
/*