]> err.no Git - linux-2.6/commitdiff
cfq-iosched: get rid of enable_idle being unused warning
authorJens Axboe <jens.axboe@oracle.com>
Thu, 26 Jun 2008 11:49:33 +0000 (13:49 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Jul 2008 11:21:14 +0000 (13:21 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c

index 0ebb626a25d3ccdb13fed65093e96a48dbf69d9b..1e2aff812ee2b278bd831809269c4d6c76234858 100644 (file)
@@ -1731,7 +1731,7 @@ cfq_update_idle_window(struct cfq_data *cfqd, struct cfq_queue *cfqq,
        if (!cfq_cfqq_sync(cfqq) || cfq_class_idle(cfqq))
                return;
 
-       old_idle = cfq_cfqq_idle_window(cfqq);
+       enable_idle = old_idle = cfq_cfqq_idle_window(cfqq);
 
        if (!atomic_read(&cic->ioc->nr_tasks) || !cfqd->cfq_slice_idle ||
            (cfqd->hw_tag && CIC_SEEKY(cic)))