ide: no need to read Status and Error registers for "empty" taskfile requests

Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 a09485df
...@@ -337,9 +337,7 @@ static ide_startstop_t execute_drive_cmd (ide_drive_t *drive, ...@@ -337,9 +337,7 @@ static ide_startstop_t execute_drive_cmd (ide_drive_t *drive,
#ifdef DEBUG #ifdef DEBUG
printk("%s: DRIVE_CMD (null)\n", drive->name); printk("%s: DRIVE_CMD (null)\n", drive->name);
#endif #endif
(void)hwif->tp_ops->read_status(hwif); ide_complete_rq(drive, 0);
ide_complete_rq(drive, ide_read_error(drive));
return ide_stopped; return ide_stopped;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册