From: Jens Axboe Date: Thu, 26 Jun 2008 11:49:33 +0000 (+0200) Subject: cfq-iosched: get rid of enable_idle being unused warning X-Git-Tag: v2.6.27-rc1~1114^2~18 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c265a7f41706cee20508de5b4a919214cfd7a11b;p=linux-2.6 cfq-iosched: get rid of enable_idle being unused warning Signed-off-by: Jens Axboe --- diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 0ebb626a25..1e2aff812e 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -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)))