Re: [PATCH 2/2] asoc: soc-core: fix coccinelle warnings

2014-02-23 Thread Mark Brown
On Mon, Feb 24, 2014 at 11:05:14AM +0800, Nenghua Cao wrote: > On 02/22/2014 10:52 AM, Mark Brown wrote: > > type changes. What coccinelle was suggesting here was to replace with a > > simple assingment statement rather than change the argument within the > > memcpy(), I think this stops the warn

Re: [PATCH 2/2] asoc: soc-core: fix coccinelle warnings

2014-02-23 Thread Nenghua Cao
On 02/22/2014 10:52 AM, Mark Brown wrote: > On Fri, Feb 21, 2014 at 04:06:10PM +0800, Nenghua Cao wrote: > >> --- a/sound/soc/soc-core.c >> +++ b/sound/soc/soc-core.c >> @@ -2413,7 +2413,7 @@ struct snd_kcontrol *snd_soc_cnew(const struct >> snd_kcontrol_new *_template, >> struct snd_kcontro

Re: [PATCH 2/2] asoc: soc-core: fix coccinelle warnings

2014-02-21 Thread Mark Brown
On Fri, Feb 21, 2014 at 04:06:10PM +0800, Nenghua Cao wrote: > --- a/sound/soc/soc-core.c > +++ b/sound/soc/soc-core.c > @@ -2413,7 +2413,7 @@ struct snd_kcontrol *snd_soc_cnew(const struct > snd_kcontrol_new *_template, > struct snd_kcontrol *kcontrol; > char *name = NULL; > > -

[PATCH 2/2] asoc: soc-core: fix coccinelle warnings

2014-02-21 Thread Nenghua Cao
From: Nenghua Cao sound/soc/soc-core.c:2708:6-13: WARNING: Assignment of bool to 0/1 sound/soc/soc-core.c:2726:3-10: WARNING: Assignment of bool to 0/1 sound/soc/soc-core.c:2264:1-7: Replace memcpy with struct assignment More information about semantic patching is available at http://coccine