diff options
author | Joe Perches <joe@perches.com> | 2014-03-26 09:34:49 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-03-26 12:36:53 -0400 |
commit | d5185d655c1fc4dfd467303f45ba4496ad84ddf9 (patch) | |
tree | 2ef67e53daed91748cbd27a23887c3c25f0257d9 /drivers/ata/sata_sx4.c | |
parent | a498e31643c1e9981fde87556bc4f6133e2fd989 (diff) | |
download | linux-d5185d655c1fc4dfd467303f45ba4496ad84ddf9.tar.gz linux-d5185d655c1fc4dfd467303f45ba4496ad84ddf9.tar.bz2 linux-d5185d655c1fc4dfd467303f45ba4496ad84ddf9.zip |
ata: remove superfluous casts
Unreferenced casts of void * types are unnecessary so remove them.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/sata_sx4.c')
-rw-r--r-- | drivers/ata/sata_sx4.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c index 6cd0312be484..39b5de60a1f9 100644 --- a/drivers/ata/sata_sx4.c +++ b/drivers/ata/sata_sx4.c @@ -1020,8 +1020,7 @@ static void pdc20621_get_from_dimm(struct ata_host *host, void *psource, idx++; dist = ((long) (window_size - (offset + size))) >= 0 ? size : (long) (window_size - offset); - memcpy_fromio((char *) psource, (char *) (dimm_mmio + offset / 4), - dist); + memcpy_fromio(psource, dimm_mmio + offset / 4, dist); psource += dist; size -= dist; @@ -1030,8 +1029,7 @@ static void pdc20621_get_from_dimm(struct ata_host *host, void *psource, readl(mmio + PDC_GENERAL_CTLR); writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); readl(mmio + PDC_DIMM_WINDOW_CTLR); - memcpy_fromio((char *) psource, (char *) (dimm_mmio), - window_size / 4); + memcpy_fromio(psource, dimm_mmio, window_size / 4); psource += window_size; size -= window_size; idx++; @@ -1042,8 +1040,7 @@ static void pdc20621_get_from_dimm(struct ata_host *host, void *psource, readl(mmio + PDC_GENERAL_CTLR); writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); readl(mmio + PDC_DIMM_WINDOW_CTLR); - memcpy_fromio((char *) psource, (char *) (dimm_mmio), - size / 4); + memcpy_fromio(psource, dimm_mmio, size / 4); } } #endif |