On 10/23/19 6:47 PM, Daniel Henrique Barboza wrote:
>
>
> On 10/23/19 10:39 AM, Michal Privoznik wrote:
>> In few places we have the following code pattern:
>>
>> int ret;
>> ... /* @ret is not accessed here */
>> ret = f(...);
>> return ret;
>>
>> This pattern can be written less ver
On 10/23/19 10:39 AM, Michal Privoznik wrote:
In few places we have the following code pattern:
int ret;
... /* @ret is not accessed here */
ret = f(...);
return ret;
This pattern can be written less verbose:
...
return f(...);
This patch was generated with following cocc
In few places we have the following code pattern:
int ret;
... /* @ret is not accessed here */
ret = f(...);
return ret;
This pattern can be written less verbose:
...
return f(...);
This patch was generated with following coccinelle spatch:
@@
type T;
constant C;
expression
In few places we have the following code pattern:
int ret;
... /* @ret is not accessed here */
ret = f(...);
return ret;
This pattern can be written less verbose:
...
return f(...);
This patch was generated with following coccinelle spatch:
@@
type T;
constant C;
expression