Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1364524 > unrolled thread

[PATCH 1/2] drivers/ata: delete unused ata_using_mwdma function

Started byYaowei Bai <baiyaowei@cmss.chinamobile.com>
First post2016-03-25 03:20 +0100
Last post2016-03-25 03:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/2] drivers/ata: delete unused ata_using_mwdma function Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 03:20 +0100

#1364524 — [PATCH 1/2] drivers/ata: delete unused ata_using_mwdma function

FromYaowei Bai <baiyaowei@cmss.chinamobile.com>
Date2016-03-25 03:20 +0100
Subject[PATCH 1/2] drivers/ata: delete unused ata_using_mwdma function
Message-ID<rgpvX-3cs-3@gated-at.bofh.it>
There's no user of ata_using_mwdma since introduced by commit
b15b3ebae ("libata: Fix a large collection of DMA mode mismatches")
in 2008, so remove it.

Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
---
 include/linux/libata.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/include/linux/libata.h b/include/linux/libata.h
index 2c4ebef..2b01760 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1759,13 +1759,6 @@ static inline unsigned long ata_deadline(unsigned long from_jiffies,
    change in future hardware and specs, secondly 0xFF means 'no DMA' but is
    > UDMA_0. Dyma ddreigiau */
 
-static inline int ata_using_mwdma(struct ata_device *adev)
-{
-	if (adev->dma_mode >= XFER_MW_DMA_0 && adev->dma_mode <= XFER_MW_DMA_4)
-		return 1;
-	return 0;
-}
-
 static inline int ata_using_udma(struct ata_device *adev)
 {
 	if (adev->dma_mode >= XFER_UDMA_0 && adev->dma_mode <= XFER_UDMA_7)
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web