ide: add ide_read_error() inline helper

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
Bartlomiej Zolnierkiewicz
2008-02-06 02:57:51 +01:00
parent c47137a99c
commit 64a57fe439
8 changed files with 18 additions and 10 deletions

View File

@ -304,7 +304,7 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret)
return 0;
/* Get the IDE error register. */
err = HWIF(drive)->INB(IDE_ERROR_REG);
err = ide_read_error(drive);
sense_key = err >> 4;
if (rq == NULL) {