linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libata: Remove some redundant casts from pata_octeon_cf.c
@ 2009-01-21  1:49 David Daney
  0 siblings, 0 replies; 3+ messages in thread
From: David Daney @ 2009-01-21  1:49 UTC (permalink / raw)
  To: linux-ide; +Cc: linux-mips, David Daney

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 drivers/ata/pata_octeon_cf.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 0fe4ef3..0e71be1 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -503,7 +503,7 @@ static void octeon_cf_dma_setup(struct ata_queued_cmd *qc)
 	struct ata_port *ap = qc->ap;
 	struct octeon_cf_port *cf_port;
 
-	cf_port = (struct octeon_cf_port *)ap->private_data;
+	cf_port = ap->private_data;
 	DPRINTK("ENTER\n");
 	/* issue r/w command */
 	qc->cursg = qc->sg;
@@ -596,7 +596,7 @@ static unsigned int octeon_cf_dma_finished(struct ata_port *ap,
 	if (ap->hsm_task_state != HSM_ST_LAST)
 		return 0;
 
-	cf_port = (struct octeon_cf_port *)ap->private_data;
+	cf_port = ap->private_data;
 
 	dma_cfg.u64 = cvmx_read_csr(CVMX_MIO_BOOT_DMA_CFGX(ocd->dma_engine));
 	if (dma_cfg.s.size != 0xfffff) {
@@ -657,7 +657,7 @@ static irqreturn_t octeon_cf_interrupt(int irq, void *dev_instance)
 			continue;
 
 		ocd = ap->dev->platform_data;
-		cf_port = (struct octeon_cf_port *)ap->private_data;
+		cf_port = ap->private_data;
 		dma_int.u64 =
 			cvmx_read_csr(CVMX_MIO_BOOT_DMA_INTX(ocd->dma_engine));
 		dma_cfg.u64 =
-- 
1.5.6.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] libata: Remove some redundant casts from pata_octeon_cf.c
@ 2009-03-31 22:04 David Daney
  2009-04-07  0:01 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2009-03-31 22:04 UTC (permalink / raw)
  To: linux-ide, jgarzik; +Cc: linux-mips, David Daney

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---

Please consider for 2.6.30.

 drivers/ata/pata_octeon_cf.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 0fe4ef3..0e71be1 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -503,7 +503,7 @@ static void octeon_cf_dma_setup(struct ata_queued_cmd *qc)
 	struct ata_port *ap = qc->ap;
 	struct octeon_cf_port *cf_port;
 
-	cf_port = (struct octeon_cf_port *)ap->private_data;
+	cf_port = ap->private_data;
 	DPRINTK("ENTER\n");
 	/* issue r/w command */
 	qc->cursg = qc->sg;
@@ -596,7 +596,7 @@ static unsigned int octeon_cf_dma_finished(struct ata_port *ap,
 	if (ap->hsm_task_state != HSM_ST_LAST)
 		return 0;
 
-	cf_port = (struct octeon_cf_port *)ap->private_data;
+	cf_port = ap->private_data;
 
 	dma_cfg.u64 = cvmx_read_csr(CVMX_MIO_BOOT_DMA_CFGX(ocd->dma_engine));
 	if (dma_cfg.s.size != 0xfffff) {
@@ -657,7 +657,7 @@ static irqreturn_t octeon_cf_interrupt(int irq, void *dev_instance)
 			continue;
 
 		ocd = ap->dev->platform_data;
-		cf_port = (struct octeon_cf_port *)ap->private_data;
+		cf_port = ap->private_data;
 		dma_int.u64 =
 			cvmx_read_csr(CVMX_MIO_BOOT_DMA_INTX(ocd->dma_engine));
 		dma_cfg.u64 =
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] libata: Remove some redundant casts from pata_octeon_cf.c
  2009-03-31 22:04 [PATCH] libata: Remove some redundant casts from pata_octeon_cf.c David Daney
@ 2009-04-07  0:01 ` Jeff Garzik
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2009-04-07  0:01 UTC (permalink / raw)
  To: David Daney; +Cc: linux-ide, jgarzik, linux-mips

David Daney wrote:
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>

applied



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-07  0:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 22:04 [PATCH] libata: Remove some redundant casts from pata_octeon_cf.c David Daney
2009-04-07  0:01 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2009-01-21  1:49 David Daney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).