mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
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 <bart.vanassche@wdc.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Cc: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
06f824c409
commit
feb8971982
1 changed files with 0 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue