Re: [PATCH 6/7] drivers/net/ipg.c: remove unused variable

From: Jeff Garzik
Date: Mon Mar 17 2008 - 07:58:57 EST


Julia Lawall wrote:
From: Julia Lawall <julia@xxxxxxx>

The variable gig is initialized but never used otherwise.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T;
identifier i;
constant C;
@@

(
extern T i;
|
- T i;
<+... when != i
- i = C;
...+>
)
// </smpl>

Signed-off-by: Julia Lawall <julia@xxxxxxx>
---
drivers/net/ipg.c | 3 ---
1 file changed, 3 deletions(-)

applied


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/