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

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

net: nfc: hci: 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 2d04cfcf
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1004,9 +1004,8 @@ int nfc_hci_register_device(struct nfc_hci_dev *hdev)

	INIT_WORK(&hdev->msg_tx_work, nfc_hci_msg_tx_work);

	init_timer(&hdev->cmd_timer);
	hdev->cmd_timer.data = (unsigned long)hdev;
	hdev->cmd_timer.function = nfc_hci_cmd_timeout;
	setup_timer(&hdev->cmd_timer, nfc_hci_cmd_timeout,
		    (unsigned long)hdev);

	skb_queue_head_init(&hdev->rx_hcp_frags);