Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Prasanna Karthik <pkarthik@intrinsyc.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Prasanna Karthik and committed by
Marcel Holtmann
6e5ffd0f 21fcf572

+1 -3
+1 -3
drivers/bluetooth/hci_bcsp.c
··· 733 733 skb_queue_head_init(&bcsp->rel); 734 734 skb_queue_head_init(&bcsp->unrel); 735 735 736 - init_timer(&bcsp->tbcsp); 737 - bcsp->tbcsp.function = bcsp_timed_event; 738 - bcsp->tbcsp.data = (u_long)hu; 736 + setup_timer(&bcsp->tbcsp, bcsp_timed_event, (u_long)hu); 739 737 740 738 bcsp->rx_state = BCSP_W4_PKT_DELIMITER; 741 739