On 7/29/2014 5:50 PM, David Miller wrote:
From: Himangi Saraogi
Date: Mon, 28 Jul 2014 20:59:38 +0530
Delete successive assignments to the same location.
A simplified version of Coccinelle semantic match that finds this problem is as
follows:
//
@@
expression i;
@@
*i = ...;
i = ...;
//
From: Himangi Saraogi
Date: Mon, 28 Jul 2014 20:59:38 +0530
> Delete successive assignments to the same location.
>
> A simplified version of Coccinelle semantic match that finds this problem is
> as
> follows:
>
> //
> @@
> expression i;
> @@
>
> *i = ...;
> i = ...;
> //
>
> Signed-off-
Delete successive assignments to the same location.
A simplified version of Coccinelle semantic match that finds this problem is as
follows:
//
@@
expression i;
@@
*i = ...;
i = ...;
//
Signed-off-by: Himangi Saraogi
---
Should the assignment be the maximum of the 2 values?
net/sunrpc/xprt
3 matches
Mail list logo