Thread (3 messages) 3 messages, 2 authors, 2014-01-14

[PATCH 0/4] delete useless variable

flat view
STALE4672d

From: Julia Lawall <hidden>
Date: 2014-01-13 15:22:08
Also in: kernel-janitors, linux-wireless, lkml, netdev
Subsystem: framebuffer layer, networking drivers, networking drivers (wireless), staging subsystem, the rest · Maintainers: Helge Deller, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Johannes Berg, Greg Kroah-Hartman, Linus Torvalds

These patches delete declarations and initializations of variables that are
only assigned to constants but never used otherwise.

The complete semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r exists@
type T;
identifier i,i2;
position p;
@@

T i@p;
... 
i = i2

@@
type r.T;
identifier r.i;
constant c;
position p != r.p;
@@

-T i@p;
<... when != i
-i = c;
...>
// </smpl>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help