Commit 01bd9081 authored by Finn Thain's avatar Finn Thain Committed by Christoph Hellwig

atari_NCR5380: Fix "transfered" typo

Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent ab93afac
...@@ -1105,7 +1105,7 @@ static void NCR5380_main(struct work_struct *work) ...@@ -1105,7 +1105,7 @@ static void NCR5380_main(struct work_struct *work)
static void NCR5380_dma_complete(struct Scsi_Host *instance) static void NCR5380_dma_complete(struct Scsi_Host *instance)
{ {
SETUP_HOSTDATA(instance); SETUP_HOSTDATA(instance);
int transfered; int transferred;
unsigned char **data; unsigned char **data;
volatile int *count; volatile int *count;
int saved_data = 0, overrun = 0; int saved_data = 0, overrun = 0;
...@@ -1157,13 +1157,13 @@ static void NCR5380_dma_complete(struct Scsi_Host *instance) ...@@ -1157,13 +1157,13 @@ static void NCR5380_dma_complete(struct Scsi_Host *instance)
NCR5380_write(MODE_REG, MR_BASE); NCR5380_write(MODE_REG, MR_BASE);
NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
transfered = hostdata->dma_len - NCR5380_dma_residual(instance); transferred = hostdata->dma_len - NCR5380_dma_residual(instance);
hostdata->dma_len = 0; hostdata->dma_len = 0;
data = (unsigned char **)&hostdata->connected->SCp.ptr; data = (unsigned char **)&hostdata->connected->SCp.ptr;
count = &hostdata->connected->SCp.this_residual; count = &hostdata->connected->SCp.this_residual;
*data += transfered; *data += transferred;
*count -= transfered; *count -= transferred;
if (hostdata->read_overruns) { if (hostdata->read_overruns) {
int cnt, toPIO; int cnt, toPIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment