From: Bartlomiej Zolnierkiewicz Date: Mon, 29 Dec 2008 19:27:36 +0000 (+0100) Subject: ide: remove redundant code from ide_end_drive_cmd() X-Git-Tag: v2.6.29-rc1~561^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b002415012f518e6940fabb77e35f0fb21b3640d;p=linux-2.6-omap-h63xx.git ide: remove redundant code from ide_end_drive_cmd() rq->errors is overwritten later in this function. Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index f776bd47501..26d3f3cacc8 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) 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;