提交 b0024150 编写于 作者: B Bartlomiej Zolnierkiewicz

ide: remove redundant code from ide_end_drive_cmd()

rq->errors is overwritten later in this function.
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 dc09c784
...@@ -291,9 +291,6 @@ void ide_end_drive_cmd (ide_drive_t *drive, u8 stat, u8 err) ...@@ -291,9 +291,6 @@ void ide_end_drive_cmd (ide_drive_t *drive, u8 stat, u8 err)
if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) { if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) {
ide_task_t *task = (ide_task_t *)rq->special; ide_task_t *task = (ide_task_t *)rq->special;
if (rq->errors == 0)
rq->errors = !OK_STAT(stat, ATA_DRDY, BAD_STAT);
if (task) { if (task) {
struct ide_taskfile *tf = &task->tf; struct ide_taskfile *tf = &task->tf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册