[SCSI] drivers/scsi: Adjust confusing if indentation
authorJulia Lawall <julia@diku.dk>
Thu, 5 Aug 2010 20:19:36 +0000 (22:19 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 5 Sep 2010 17:18:45 +0000 (14:18 -0300)
commit7968f1944c9d6c83683e87fd2ede977ccfd29285
tree12e9e26cf507c3a85e58a9cdb634f297fc709fe1
parentda99e307aa508fba6fbedc3699e7df64e284d2c5
[SCSI] drivers/scsi: Adjust confusing if indentation

Outdent the code following the 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>
Acked-by: Nick Cheng <nick.cheng@areca.com.tw>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/arcmsr/arcmsr_hba.c
drivers/scsi/mpt2sas/mpt2sas_base.c