ASoC: patch for the useless 'break' removal in kirkwood
authorWan ZongShun <mcuos.com@gmail.com>
Wed, 2 Jun 2010 08:03:39 +0000 (16:03 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 7 Jun 2010 13:27:18 +0000 (14:27 +0100)
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>
sound/soc/kirkwood/kirkwood-i2s.c

index 0adc59778d5a7be1cf6732bc4b47f7246ca11896..0fdc7db7a469ed52f8cbb344539ade08eef2c60d 100644 (file)
@@ -296,7 +296,6 @@ static int kirkwood_i2s_rec_trigger(struct snd_pcm_substream *substream,
 
        default:
                return -EINVAL;
-               break;
        }
 
        return 0;