Skip to content

Commit 309e7cc

Browse files
Ondrej ZaryChristoph Hellwig
authored andcommitted
wd719x: remove dma_cache_sync call
Remove dma_cache_sync call to fix build on other architectures. Driver still works fine on x86 without that. Signed-off-by: Ondrej Zary <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 38d5c83 commit 309e7cc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/wd719x.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ static int wd719x_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd)
244244
scb->sense_buf_length = SCSI_SENSE_BUFFERSIZE;
245245
cmd->SCp.dma_handle = dma_map_single(&wd->pdev->dev, cmd->sense_buffer,
246246
SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE);
247-
dma_cache_sync(&wd->pdev->dev, cmd->sense_buffer,
248-
SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE);
249247
scb->sense_buf = cpu_to_le32(cmd->SCp.dma_handle);
250248

251249
/* request autosense */

0 commit comments

Comments
 (0)