[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1389629847-5330-1-git-send-email-Julia.Lawall@lip6.fr>
Date: Mon, 13 Jan 2014 17:17:23 +0100
From: Julia Lawall <Julia.Lawall@...6.fr>
To: brcm80211-dev-list@...adcom.com
Cc: kernel-janitors@...r.kernel.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-fbdev@...r.kernel.org, devel@...verdev.osuosl.org
Subject: [PATCH 0/4] delete useless variable
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>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists