Commit b5048a6cb5455a16bdff26a4c5ae9534f070d94c

Authored by Artem Bityutskiy
Committed by Jens Axboe
1 parent 6467716a37

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 <Artem.Bityutskiy@nokia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -236,7 +236,6 @@
236 236 sync_supers_tsk = kthread_run(bdi_sync_supers, NULL, "sync_supers");
237 237 BUG_ON(IS_ERR(sync_supers_tsk));
238 238  
239   - init_timer(&sync_supers_timer);
240 239 setup_timer(&sync_supers_timer, sync_supers_timer_fn, 0);
241 240 bdi_arm_supers_timer();
242 241