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

Commit 6e5ffd0f authored by Prasanna Karthik's avatar Prasanna Karthik Committed by Marcel Holtmann
Browse files

Bluetooth: hci_bcsp: Use setup_timer Kernel API instead of init_timer



Replace init_timer function with setup_timer reported by coccinelle

Signed-off-by: default avatarPrasanna Karthik <pkarthik@intrinsyc.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 21fcf572
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -733,9 +733,7 @@ static int bcsp_open(struct hci_uart *hu)
	skb_queue_head_init(&bcsp->rel);
	skb_queue_head_init(&bcsp->unrel);

	init_timer(&bcsp->tbcsp);
	bcsp->tbcsp.function = bcsp_timed_event;
	bcsp->tbcsp.data     = (u_long)hu;
	setup_timer(&bcsp->tbcsp, bcsp_timed_event, (u_long)hu);

	bcsp->rx_state = BCSP_W4_PKT_DELIMITER;