forked from luck/tmp_suning_uos_patched
ide: remove redundant code from ide_end_drive_cmd()
rq->errors is overwritten later in this function. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
dc09c78425
commit
b002415012
@ -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) {
|
||||
ide_task_t *task = (ide_task_t *)rq->special;
|
||||
|
||||
if (rq->errors == 0)
|
||||
rq->errors = !OK_STAT(stat, ATA_DRDY, BAD_STAT);
|
||||
|
||||
if (task) {
|
||||
struct ide_taskfile *tf = &task->tf;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user