diff options
author | Julia Lawall <julia@diku.dk> | 2010-08-05 16:19:36 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-09-05 13:18:45 -0400 |
commit | 7968f1944c9d6c83683e87fd2ede977ccfd29285 (patch) | |
tree | 12e9e26cf507c3a85e58a9cdb634f297fc709fe1 /drivers/scsi/arcmsr/arcmsr_hba.c | |
parent | da99e307aa508fba6fbedc3699e7df64e284d2c5 (diff) |
[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>
Diffstat (limited to 'drivers/scsi/arcmsr/arcmsr_hba.c')
-rw-r--r-- | drivers/scsi/arcmsr/arcmsr_hba.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index c8dc392edd57..05a78e515a24 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c | |||
@@ -878,8 +878,8 @@ static void arcmsr_report_ccb_state(struct AdapterControlBlock *acb, | |||
878 | if (!error) { | 878 | if (!error) { |
879 | if (acb->devstate[id][lun] == ARECA_RAID_GONE) | 879 | if (acb->devstate[id][lun] == ARECA_RAID_GONE) |
880 | acb->devstate[id][lun] = ARECA_RAID_GOOD; | 880 | acb->devstate[id][lun] = ARECA_RAID_GOOD; |
881 | ccb->pcmd->result = DID_OK << 16; | 881 | ccb->pcmd->result = DID_OK << 16; |
882 | arcmsr_ccb_complete(ccb); | 882 | arcmsr_ccb_complete(ccb); |
883 | }else{ | 883 | }else{ |
884 | switch (ccb->arcmsr_cdb.DeviceStatus) { | 884 | switch (ccb->arcmsr_cdb.DeviceStatus) { |
885 | case ARCMSR_DEV_SELECT_TIMEOUT: { | 885 | case ARCMSR_DEV_SELECT_TIMEOUT: { |