Skip to content

Commit

Permalink
ASoC: patch for the useless 'break' removal in kirkwood
Browse files Browse the repository at this point in the history
This patch to remove the 'break;', when the 'switch' jumps to
the 'default' branch, the 'return -EINVAL' will be return with
a error number, so the 'break;' code never be run, it is unuseful
and should be removed here.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Wan ZongShun authored and Mark Brown committed Jun 7, 2010
1 parent 911ff68 commit 04c09a1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/kirkwood/kirkwood-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ static int kirkwood_i2s_rec_trigger(struct snd_pcm_substream *substream,

default:
return -EINVAL;
break;
}

return 0;
Expand Down

0 comments on commit 04c09a1

Please sign in to comment.