Re: [Outreachy kernel] [PATCH] staging: rtlwifi: delete double assignment

2017-09-15 Thread Julia Lawall
On Fri, 15 Sep 2017, Harsha Sharma wrote: > Remove two adjacent assignments to the same location. > In practice, many such occurences are intentional but > this case don't seem to fall into that category. > Done using following coccinelle semantic patch > > @@ > expression e1,e2,e3; > @@ > > ( >

[PATCH] staging: rtlwifi: delete double assignment

2017-09-15 Thread Harsha Sharma
Remove two adjacent assignments to the same location. In practice, many such occurences are intentional but this case don't seem to fall into that category. Done using following coccinelle semantic patch @@ expression e1,e2,e3; @@ ( (<+...e1++...+>)=e2; | (<+...e1--...+>)=e2; | (<+...++e1...+>