diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-29 14:27:36 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-29 14:27:36 -0500 |
commit | b002415012f518e6940fabb77e35f0fb21b3640d (patch) | |
tree | 8befbefbb1ae5505fa499842c9ee6653a44f9884 | |
parent | dc09c78425de89c80c51319c3fbb939f7960c59c (diff) |
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>
-rw-r--r-- | drivers/ide/ide-io.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index f776bd475010..26d3f3cacc8a 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -291,9 +291,6 @@ void ide_end_drive_cmd (ide_drive_t *drive, u8 stat, u8 err) | |||
291 | if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) { | 291 | if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) { |
292 | ide_task_t *task = (ide_task_t *)rq->special; | 292 | ide_task_t *task = (ide_task_t *)rq->special; |
293 | 293 | ||
294 | if (rq->errors == 0) | ||
295 | rq->errors = !OK_STAT(stat, ATA_DRDY, BAD_STAT); | ||
296 | |||
297 | if (task) { | 294 | if (task) { |
298 | struct ide_taskfile *tf = &task->tf; | 295 | struct ide_taskfile *tf = &task->tf; |
299 | 296 | ||