net/decnet: Adjust confusing if indentation
authorJulia Lawall <julia@diku.dk>
Thu, 5 Aug 2010 10:29:38 +0000 (10:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2010 04:06:30 +0000 (21:06 -0700)
commitbb8a10bbd10a45db0eb45bac520489bdbc0917ef
treef489756f44d1666d60bd4d7779de409b7d8d83cc
parentf7df0b8d924ad2f39852ea397d39a51fbb955212
net/decnet: Adjust confusing if indentation

Indent the branch of an if.

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>
net/decnet/dn_nsp_out.c