Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 570ba3e8 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller
Browse files

drivers: net: enic: use setup_timer() helper.



Use setup_timer function instead of initializing timer with the
    function and data fields.

Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 99e3aa1e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -19,9 +19,8 @@ void enic_flow_may_expire(unsigned long data);

static inline void enic_rfs_timer_start(struct enic *enic)
{
	init_timer(&enic->rfs_h.rfs_may_expire);
	enic->rfs_h.rfs_may_expire.function = enic_flow_may_expire;
	enic->rfs_h.rfs_may_expire.data = (unsigned long)enic;
	setup_timer(&enic->rfs_h.rfs_may_expire, enic_flow_may_expire,
		    (unsigned long)enic);
	mod_timer(&enic->rfs_h.rfs_may_expire, jiffies + HZ/4);
}