Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133366
b: refs/heads/master
c: 1f5892a
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent d2c89b6 commit c787af8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 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: 2f0d0fd2a605666d38e290c5c0d2907484352dc4
refs/heads/master: 1f5892a5d21c905b1614cbd6bd8c5ad2cfbc106f
21 changes: 1 addition & 20 deletions trunk/drivers/ide/ide-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,32 +334,14 @@ static int do_drive_set_taskfiles(ide_drive_t *drive,
unsigned int gtf_length,
unsigned long gtf_address)
{
int rc = -ENODEV, err;
int rc = 0, err;
int gtf_count = gtf_length / REGS_PER_GTF;
int ix;
struct taskfile_array *gtf;

if (ide_noacpi)
return 0;

DEBPRINT("ENTER: %s, hard_port#: %d\n", drive->name, drive->dn);

if ((drive->dev_flags & IDE_DFLAG_PRESENT) == 0)
goto out;

if (!gtf_count) /* shouldn't be here */
goto out;

DEBPRINT("total GTF bytes=%u (0x%x), gtf_count=%d, addr=0x%lx\n",
gtf_length, gtf_length, gtf_count, gtf_address);

if (gtf_length % REGS_PER_GTF) {
printk(KERN_ERR "%s: unexpected GTF length (%d)\n",
__func__, gtf_length);
goto out;
}

rc = 0;
for (ix = 0; ix < gtf_count; ix++) {
gtf = (struct taskfile_array *)
(gtf_address + ix * REGS_PER_GTF);
Expand All @@ -370,7 +352,6 @@ static int do_drive_set_taskfiles(ide_drive_t *drive,
rc = err;
}

out:
return rc;
}

Expand Down

0 comments on commit c787af8

Please sign in to comment.