Skip to contentSkip to conversation

sata_dwc_460ex: indent an if statement

PATCH Applied Dan Carpenter 3 participants 3 messages Mar 30, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sata_dwc_460ex: indent an if statement

We shuffled some code around in 8b3444852a2b ('sata_dwc_460ex: move to generic DMA driver') an accidentally deleted a tab character here. It causes a Smatch warning "if statement not indented".

drivers/ata/sata_dwc_460ex.c +1 -1
index 5ab4849..9020349 100644
@@ -295,7 +295,7 @@ static void dma_dwc_xfer_done(void *hsdev_instance)
 	}
 
 	if ((hsdevp->dma_interrupt_count % 2) = 0)
-	sata_dwc_dma_xfer_complete(ap, 1);
+		sata_dwc_dma_xfer_complete(ap, 1);
 
 	spin_unlock_irqrestore(&host->lock, flags);
 }
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Dan Carpenter

We shuffled some code around in 8b3444852a2b ('sata_dwc_460ex: move to generic DMA driver') an accidentally deleted a tab character here. It causes a Smatch warning "if statement not indented".

Quoted 14 lines
drivers/ata/sata_dwc_460ex.c +1 -1
index 5ab4849..9020349 100644
@@ -295,7 +295,7 @@ static void dma_dwc_xfer_done(void *hsdev_instance)
 	}
 
 	if ((hsdevp->dma_interrupt_count % 2) = 0)
-	sata_dwc_dma_xfer_complete(ap, 1);
+		sata_dwc_dma_xfer_complete(ap, 1);
 
 	spin_unlock_irqrestore(&host->lock, flags);
 }
Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy
Applied
#2 lore raw
In reply to Dan Carpenter
Quoted 5 lines · Dan Carpenter

We shuffled some code around in 8b3444852a2b ('sata_dwc_460ex: move to generic DMA driver') an accidentally deleted a tab character here. It causes a Smatch warning "if statement not indented".

Applied to libata/for-4.1.

Thanks.

Signature · 1 line
tejun