Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
Tejun Heo
d5185d65 a498e316

+6 -10
+1 -1
drivers/ata/libahci.c
··· 1636 1636 } 1637 1637 1638 1638 if (irq_stat & PORT_IRQ_UNK_FIS) { 1639 - u32 *unk = (u32 *)(pp->rx_fis + RX_FIS_UNK); 1639 + u32 *unk = pp->rx_fis + RX_FIS_UNK; 1640 1640 1641 1641 active_ehi->err_mask |= AC_ERR_HSM; 1642 1642 active_ehi->action |= ATA_EH_RESET;
+1 -1
drivers/ata/pata_arasan_cf.c
··· 356 356 357 357 static void dma_callback(void *dev) 358 358 { 359 - struct arasan_cf_dev *acdev = (struct arasan_cf_dev *) dev; 359 + struct arasan_cf_dev *acdev = dev; 360 360 361 361 complete(&acdev->dma_completion); 362 362 }
+1 -2
drivers/ata/sata_dwc_460ex.c
··· 461 461 int chan; 462 462 u32 tfr_reg, err_reg; 463 463 unsigned long flags; 464 - struct sata_dwc_device *hsdev = 465 - (struct sata_dwc_device *)hsdev_instance; 464 + struct sata_dwc_device *hsdev = hsdev_instance; 466 465 struct ata_host *host = (struct ata_host *)hsdev->host; 467 466 struct ata_port *ap; 468 467 struct sata_dwc_device_port *hsdevp;
+3 -6
drivers/ata/sata_sx4.c
··· 1020 1020 idx++; 1021 1021 dist = ((long) (window_size - (offset + size))) >= 0 ? size : 1022 1022 (long) (window_size - offset); 1023 - memcpy_fromio((char *) psource, (char *) (dimm_mmio + offset / 4), 1024 - dist); 1023 + memcpy_fromio(psource, dimm_mmio + offset / 4, dist); 1025 1024 1026 1025 psource += dist; 1027 1026 size -= dist; ··· 1029 1030 readl(mmio + PDC_GENERAL_CTLR); 1030 1031 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); 1031 1032 readl(mmio + PDC_DIMM_WINDOW_CTLR); 1032 - memcpy_fromio((char *) psource, (char *) (dimm_mmio), 1033 - window_size / 4); 1033 + memcpy_fromio(psource, dimm_mmio, window_size / 4); 1034 1034 psource += window_size; 1035 1035 size -= window_size; 1036 1036 idx++; ··· 1040 1042 readl(mmio + PDC_GENERAL_CTLR); 1041 1043 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); 1042 1044 readl(mmio + PDC_DIMM_WINDOW_CTLR); 1043 - memcpy_fromio((char *) psource, (char *) (dimm_mmio), 1044 - size / 4); 1045 + memcpy_fromio(psource, dimm_mmio, size / 4); 1045 1046 } 1046 1047 } 1047 1048 #endif