Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137671
b: refs/heads/master
c: 041cea1
h: refs/heads/master
i:
  137669: 7e6d787
  137667: 5f31a94
  137663: fd8c211
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent 1a506ce commit 31cee76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a1248c5a754cc8dc5b10a902d2f86b40144165c
refs/heads/master: 041cea10a86a25b088185d07ad15d728f503f02c
7 changes: 3 additions & 4 deletions trunk/drivers/ide/ide-taskfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ static void ide_pio_datablock(ide_drive_t *drive, struct ide_cmd *cmd,
drive->io_32bit = saved_io_32bit;
}

static ide_startstop_t task_error(ide_drive_t *drive, struct ide_cmd *cmd,
const char *s, u8 stat)
static void ide_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
{
if (cmd->tf_flags & IDE_TFLAG_FS) {
int sectors = cmd->nsect - cmd->nleft;
Expand All @@ -297,7 +296,6 @@ static ide_startstop_t task_error(ide_drive_t *drive, struct ide_cmd *cmd,
if (sectors > 0)
ide_end_request(drive, 1, sectors);
}
return ide_error(drive, s, stat);
}

void ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat)
Expand Down Expand Up @@ -368,7 +366,8 @@ static ide_startstop_t task_pio_intr(ide_drive_t *drive)
ide_finish_cmd(drive, cmd, stat);
return ide_stopped;
out_err:
return task_error(drive, cmd, __func__, stat);
ide_error_cmd(drive, cmd);
return ide_error(drive, __func__, stat);
}

static ide_startstop_t pre_task_out_intr(ide_drive_t *drive,
Expand Down

0 comments on commit 31cee76

Please sign in to comment.