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

Commit 2d04cfcf authored by Allen Pais's avatar Allen Pais Committed by David S. Miller
Browse files

net: af_packet: 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 39e50d96
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -544,9 +544,7 @@ static void prb_init_blk_timer(struct packet_sock *po,
		struct tpacket_kbdq_core *pkc,
		void (*func) (unsigned long))
{
	init_timer(&pkc->retire_blk_timer);
	pkc->retire_blk_timer.data = (long)po;
	pkc->retire_blk_timer.function = func;
	setup_timer(&pkc->retire_blk_timer, func, (long)po);
	pkc->retire_blk_timer.expires = jiffies;
}