ASoC/kirkwood: patch for the useless 'break' removal.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Mark,
How about this patch?
My other patch seem to be applied, but this one still be hung.
Quoted 26 lines · 在 2010年6月2日 下午4:03,Wan ZongShun <[email protected]> 写道:
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<[email protected]>---
sound/soc/kirkwood/kirkwood-i2s.c | 1 -1 files changed, 0 insertions(+), 1 deletions(-)sound/soc/kirkwood/kirkwood-i2s.c +0
-0@@ -296,7 +296,6 @@ static int kirkwood_i2s_rec_trigger(struct snd_pcm_substream *substream,default:
return-EINVAL;
- break;
}return 0;
--
1.6.3.3
Signature · 14 lines
*linux-arm-kernel mailing list mail addr:[email protected] you can subscribe by: http://lists.infradead.org/mailman/listinfo/linux-arm-kernel * linux-arm-NUC900 mailing list mail addr:[email protected] main web: https://groups.google.com/group/NUC900 you can subscribe it by sending me mail: [email protected] _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Liam Girdwood
Acked-byQuoted 13 lines · Wan ZongShun
Hi Mark,
How about this patch?
My other patch seem to be applied, but this one still be hung.Quoted 7 lines · 在 2010年6月2日 下午4:03,Wan ZongShun <[email protected]> 写道:
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<[email protected]>
Signature · 8 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
AppliedQuoted 5 lines · Liam Girdwood
Quoted 1 line · Wan ZongShun
Quoted 1 line
Signed-off-by Wan ZongShun<[email protected]>Acked-by Liam Girdwood <[email protected]>
Applied, thanks.