Julia Lawall
f7df0b8d92
drivers/isdn: Adjust confusing if indentation
...
In hisax/hfc_sx.c and mISDN/l1oip_core.c, the code after the if is
outdented so that it is not aligned with the if branch.
In mISDN/dsp_cmx.c, an else is added between the original if branch and the
following statement, in line with the code following it. Without this
change, the first assignment to dsp->rx_W has no useful effect.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/ )
// <smpl>
@r disable braces4@
position p1,p2;
statement S1,S2;
@@
(
if (...) { ... }
|
if (...) S1@p1 S2@p2
)
@script:python@
p1 << r.p1;
p2 << r.p2;
@@
if (p1[0].column == p2[0].column):
cocci.print_main("branch",p1)
cocci.print_secs("after",p2)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-16 21:06:30 -07:00
..
2010-03-30 22:02:32 +09:00
2006-10-03 23:01:26 +02:00
2009-10-11 11:20:58 -07:00
2005-04-16 15:20:36 -07:00
2008-04-28 08:58:34 -07:00
2008-04-20 18:22:31 -04:00
2008-02-09 23:29:28 -08:00
2010-03-30 22:02:32 +09:00
2010-08-03 09:04:11 +02:00
2010-02-22 16:17:01 -08:00
2010-02-22 16:17:01 -08:00
2005-04-16 15:20:36 -07:00
2010-07-11 21:45:40 +02:00
2010-07-15 19:05:24 -07:00
2010-02-22 16:17:01 -08:00
2010-08-03 09:04:11 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-02-22 16:17:01 -08:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-02-22 16:17:01 -08:00
2010-04-23 02:08:44 +02:00
2006-11-30 05:24:39 +01:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-02-22 16:17:01 -08:00
2005-06-25 16:25:07 -07:00
2010-08-16 21:06:30 -07:00
2005-06-25 16:25:07 -07:00
2010-03-30 22:02:32 +09:00
2007-08-21 10:14:28 -07:00
2009-02-27 01:00:42 -08:00
2008-04-20 18:22:30 -04:00
2008-04-28 08:58:34 -07:00
2010-05-19 17:33:38 +09:30
2006-01-08 20:14:07 -08:00
2007-10-14 12:41:51 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-02-22 16:17:01 -08:00
2009-11-04 08:31:19 -08:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2006-07-10 13:24:15 -07:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2007-02-12 09:48:34 -08:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2007-02-12 09:48:34 -08:00
2008-04-20 18:22:31 -04:00
2008-04-28 08:58:34 -07:00
2006-01-14 18:27:06 -08:00
2010-03-30 22:02:32 +09:00
2005-06-25 16:25:07 -07:00
2010-02-22 16:17:01 -08:00
2009-07-25 20:23:05 +02:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-07-25 20:15:21 +02:00
2008-04-20 18:22:31 -04:00
2010-03-30 22:02:32 +09:00
2008-04-20 18:22:31 -04:00
2010-02-22 16:17:01 -08:00
2010-02-22 16:17:01 -08:00
2010-02-22 16:17:01 -08:00
2010-07-15 19:05:24 -07:00
2008-04-20 18:22:31 -04:00
2008-04-20 18:22:31 -04:00
2010-08-03 09:04:21 +02:00
2010-02-22 16:17:01 -08:00
2008-04-20 18:22:31 -04:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2007-05-23 20:14:14 -07:00
2009-07-25 20:16:01 +02:00
2009-07-25 20:15:21 +02:00
2010-07-11 21:45:40 +02:00
2008-04-20 18:22:31 -04:00
2009-02-27 01:00:42 -08:00
2009-02-27 01:00:42 -08:00
2010-08-03 09:04:11 +02:00
2010-02-22 16:17:01 -08:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00