From: Bart Van Assche Date: Thu, 17 Aug 2017 20:13:16 +0000 (-0700) Subject: skd: Remove a redundant init_timer() call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=feb8971982beae41507a43fee609c59445147cf5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git skd: Remove a redundant init_timer() call Since setup_timer() invokes init_timer(), invoking init_timer() just before setup_timer() is redundant. Hence remove the init_timer() call. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Johannes Thumshirn Signed-off-by: Jens Axboe --- diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index 62e06e35ddf5..71158e8b8a2b 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -1057,7 +1057,6 @@ static int skd_start_timer(struct skd_device *skdev) { int rc; - init_timer(&skdev->timer); setup_timer(&skdev->timer, skd_timer_tick, (ulong)skdev); rc = mod_timer(&skdev->timer, (jiffies + HZ));