From: Artem Bityutskiy Date: Sun, 25 Jul 2010 11:29:23 +0000 (+0300) Subject: writeback: remove unnecessary init_timer call X-Git-Tag: v2.6.36-rc1~288^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b5048a6cb5455a16bdff26a4c5ae9534f070d94c;p=karo-tx-linux.git writeback: remove unnecessary init_timer call The 'setup_timer()' function also calls 'init_timer()', so the extra 'init_timer()' call is not needed. Indeed, 'setup_timer()' is basically 'init_timer()' plus callback function and data pointers initialization. Signed-off-by: Artem Bityutskiy Reviewed-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/mm/backing-dev.c b/mm/backing-dev.c index cfff7225138c..99890831d557 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -236,7 +236,6 @@ static int __init default_bdi_init(void) sync_supers_tsk = kthread_run(bdi_sync_supers, NULL, "sync_supers"); BUG_ON(IS_ERR(sync_supers_tsk)); - init_timer(&sync_supers_timer); setup_timer(&sync_supers_timer, sync_supers_timer_fn, 0); bdi_arm_supers_timer();