Skip to content

Commit

Permalink
ALSA: ps3: Remove Unneeded variable: "ret"
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Hariprasad Kelam authored and tiwai committed Jul 10, 2019
1 parent 7a3c2b6 commit 73948ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/ppc/snd_ps3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -665,7 +664,7 @@ static int snd_ps3_pcm_trigger(struct snd_pcm_substream *substream,

}

return ret;
return 0;
};

/*
Expand Down

0 comments on commit 73948ca

Please sign in to comment.