diff options
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/core.c | 2 | ||||
-rw-r--r-- | net/nfc/hci/core.c | 12 | ||||
-rw-r--r-- | net/nfc/hci/llc.c | 2 | ||||
-rw-r--r-- | net/nfc/hci/llc_shdlc.c | 7 | ||||
-rw-r--r-- | net/nfc/llcp/llcp.c | 7 | ||||
-rw-r--r-- | net/nfc/nci/core.c | 1 | ||||
-rw-r--r-- | net/nfc/netlink.c | 2 | ||||
-rw-r--r-- | net/nfc/rawsock.c | 1 |
8 files changed, 17 insertions, 17 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c index e94363dbbf4a..aa64ea441676 100644 --- a/net/nfc/core.c +++ b/net/nfc/core.c | |||
@@ -198,7 +198,7 @@ static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) | |||
198 | if (dev->n_targets == 0) | 198 | if (dev->n_targets == 0) |
199 | return NULL; | 199 | return NULL; |
200 | 200 | ||
201 | for (i = 0; i < dev->n_targets ; i++) { | 201 | for (i = 0; i < dev->n_targets; i++) { |
202 | if (dev->targets[i].idx == target_idx) | 202 | if (dev->targets[i].idx == target_idx) |
203 | return &dev->targets[i]; | 203 | return &dev->targets[i]; |
204 | } | 204 | } |
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c index 4b720ff20ee9..bc571b0efb92 100644 --- a/net/nfc/hci/core.c +++ b/net/nfc/hci/core.c | |||
@@ -65,8 +65,9 @@ static void nfc_hci_msg_tx_work(struct work_struct *work) | |||
65 | -ETIME); | 65 | -ETIME); |
66 | kfree(hdev->cmd_pending_msg); | 66 | kfree(hdev->cmd_pending_msg); |
67 | hdev->cmd_pending_msg = NULL; | 67 | hdev->cmd_pending_msg = NULL; |
68 | } else | 68 | } else { |
69 | goto exit; | 69 | goto exit; |
70 | } | ||
70 | } | 71 | } |
71 | 72 | ||
72 | next_msg: | 73 | next_msg: |
@@ -535,7 +536,8 @@ static int hci_start_poll(struct nfc_dev *nfc_dev, | |||
535 | return hdev->ops->start_poll(hdev, im_protocols, tm_protocols); | 536 | return hdev->ops->start_poll(hdev, im_protocols, tm_protocols); |
536 | else | 537 | else |
537 | return nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE, | 538 | return nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE, |
538 | NFC_HCI_EVT_READER_REQUESTED, NULL, 0); | 539 | NFC_HCI_EVT_READER_REQUESTED, |
540 | NULL, 0); | ||
539 | } | 541 | } |
540 | 542 | ||
541 | static void hci_stop_poll(struct nfc_dev *nfc_dev) | 543 | static void hci_stop_poll(struct nfc_dev *nfc_dev) |
@@ -639,9 +641,9 @@ static int hci_transceive(struct nfc_dev *nfc_dev, struct nfc_target *target, | |||
639 | cb_context); | 641 | cb_context); |
640 | if (r == 1) | 642 | if (r == 1) |
641 | r = -ENOTSUPP; | 643 | r = -ENOTSUPP; |
642 | } | 644 | } else { |
643 | else | ||
644 | r = -ENOTSUPP; | 645 | r = -ENOTSUPP; |
646 | } | ||
645 | break; | 647 | break; |
646 | } | 648 | } |
647 | 649 | ||
@@ -891,7 +893,7 @@ void nfc_hci_driver_failure(struct nfc_hci_dev *hdev, int err) | |||
891 | } | 893 | } |
892 | EXPORT_SYMBOL(nfc_hci_driver_failure); | 894 | EXPORT_SYMBOL(nfc_hci_driver_failure); |
893 | 895 | ||
894 | void inline nfc_hci_recv_frame(struct nfc_hci_dev *hdev, struct sk_buff *skb) | 896 | void nfc_hci_recv_frame(struct nfc_hci_dev *hdev, struct sk_buff *skb) |
895 | { | 897 | { |
896 | nfc_llc_rcv_from_drv(hdev->llc, skb); | 898 | nfc_llc_rcv_from_drv(hdev->llc, skb); |
897 | } | 899 | } |
diff --git a/net/nfc/hci/llc.c b/net/nfc/hci/llc.c index ae1205ded87f..fe5e966e5b88 100644 --- a/net/nfc/hci/llc.c +++ b/net/nfc/hci/llc.c | |||
@@ -72,7 +72,7 @@ int nfc_llc_register(const char *name, struct nfc_llc_ops *ops) | |||
72 | llc_engine->ops = ops; | 72 | llc_engine->ops = ops; |
73 | 73 | ||
74 | INIT_LIST_HEAD(&llc_engine->entry); | 74 | INIT_LIST_HEAD(&llc_engine->entry); |
75 | list_add_tail (&llc_engine->entry, &llc_engines); | 75 | list_add_tail(&llc_engine->entry, &llc_engines); |
76 | 76 | ||
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
diff --git a/net/nfc/hci/llc_shdlc.c b/net/nfc/hci/llc_shdlc.c index 01cbc72943cd..27b313befc35 100644 --- a/net/nfc/hci/llc_shdlc.c +++ b/net/nfc/hci/llc_shdlc.c | |||
@@ -634,9 +634,9 @@ static void llc_shdlc_sm_work(struct work_struct *work) | |||
634 | r = llc_shdlc_connect_initiate(shdlc); | 634 | r = llc_shdlc_connect_initiate(shdlc); |
635 | else | 635 | else |
636 | r = -ETIME; | 636 | r = -ETIME; |
637 | if (r < 0) | 637 | if (r < 0) { |
638 | llc_shdlc_connect_complete(shdlc, r); | 638 | llc_shdlc_connect_complete(shdlc, r); |
639 | else { | 639 | } else { |
640 | mod_timer(&shdlc->connect_timer, jiffies + | 640 | mod_timer(&shdlc->connect_timer, jiffies + |
641 | msecs_to_jiffies(SHDLC_CONNECT_VALUE_MS)); | 641 | msecs_to_jiffies(SHDLC_CONNECT_VALUE_MS)); |
642 | 642 | ||
@@ -682,9 +682,8 @@ static void llc_shdlc_sm_work(struct work_struct *work) | |||
682 | llc_shdlc_handle_send_queue(shdlc); | 682 | llc_shdlc_handle_send_queue(shdlc); |
683 | } | 683 | } |
684 | 684 | ||
685 | if (shdlc->hard_fault) { | 685 | if (shdlc->hard_fault) |
686 | shdlc->llc_failure(shdlc->hdev, shdlc->hard_fault); | 686 | shdlc->llc_failure(shdlc->hdev, shdlc->hard_fault); |
687 | } | ||
688 | break; | 687 | break; |
689 | default: | 688 | default: |
690 | break; | 689 | break; |
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index 285bba8c7afc..c8b27afc16f9 100644 --- a/net/nfc/llcp/llcp.c +++ b/net/nfc/llcp/llcp.c | |||
@@ -65,7 +65,8 @@ static void nfc_llcp_socket_release(struct nfc_llcp_local *local, bool listen) | |||
65 | struct nfc_llcp_sock *lsk, *n; | 65 | struct nfc_llcp_sock *lsk, *n; |
66 | struct sock *accept_sk; | 66 | struct sock *accept_sk; |
67 | 67 | ||
68 | list_for_each_entry_safe(lsk, n, &llcp_sock->accept_queue, | 68 | list_for_each_entry_safe(lsk, n, |
69 | &llcp_sock->accept_queue, | ||
69 | accept_queue) { | 70 | accept_queue) { |
70 | accept_sk = &lsk->sk; | 71 | accept_sk = &lsk->sk; |
71 | bh_lock_sock(accept_sk); | 72 | bh_lock_sock(accept_sk); |
@@ -1111,7 +1112,7 @@ static void nfc_llcp_recv_snl(struct nfc_llcp_local *local, | |||
1111 | tlv_len = skb->len - LLCP_HEADER_SIZE; | 1112 | tlv_len = skb->len - LLCP_HEADER_SIZE; |
1112 | offset = 0; | 1113 | offset = 0; |
1113 | 1114 | ||
1114 | while(offset < tlv_len) { | 1115 | while (offset < tlv_len) { |
1115 | type = tlv[0]; | 1116 | type = tlv[0]; |
1116 | length = tlv[1]; | 1117 | length = tlv[1]; |
1117 | 1118 | ||
@@ -1168,7 +1169,7 @@ static void nfc_llcp_recv_snl(struct nfc_llcp_local *local, | |||
1168 | 1169 | ||
1169 | pr_debug("%p %d\n", llcp_sock, sap); | 1170 | pr_debug("%p %d\n", llcp_sock, sap); |
1170 | 1171 | ||
1171 | send_snl: | 1172 | send_snl: |
1172 | nfc_llcp_send_snl(local, tid, sap); | 1173 | nfc_llcp_send_snl(local, tid, sap); |
1173 | break; | 1174 | break; |
1174 | 1175 | ||
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index 89446c8c40c7..5f98dc1bf039 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c | |||
@@ -577,7 +577,6 @@ static void nci_deactivate_target(struct nfc_dev *nfc_dev, | |||
577 | } | 577 | } |
578 | } | 578 | } |
579 | 579 | ||
580 | |||
581 | static int nci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, | 580 | static int nci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, |
582 | __u8 comm_mode, __u8 *gb, size_t gb_len) | 581 | __u8 comm_mode, __u8 *gb, size_t gb_len) |
583 | { | 582 | { |
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index ab9edfdd4b85..614cfd0470b7 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c | |||
@@ -591,7 +591,7 @@ static int nfc_genl_start_poll(struct sk_buff *skb, struct genl_info *info) | |||
591 | if (!info->attrs[NFC_ATTR_DEVICE_INDEX] || | 591 | if (!info->attrs[NFC_ATTR_DEVICE_INDEX] || |
592 | ((!info->attrs[NFC_ATTR_IM_PROTOCOLS] && | 592 | ((!info->attrs[NFC_ATTR_IM_PROTOCOLS] && |
593 | !info->attrs[NFC_ATTR_PROTOCOLS]) && | 593 | !info->attrs[NFC_ATTR_PROTOCOLS]) && |
594 | !info->attrs[NFC_ATTR_TM_PROTOCOLS])) | 594 | !info->attrs[NFC_ATTR_TM_PROTOCOLS])) |
595 | return -EINVAL; | 595 | return -EINVAL; |
596 | 596 | ||
597 | idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); | 597 | idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); |
diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c index 8b8a6a2b2bad..313bf1bc848a 100644 --- a/net/nfc/rawsock.c +++ b/net/nfc/rawsock.c | |||
@@ -256,7 +256,6 @@ static int rawsock_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
256 | return rc ? : copied; | 256 | return rc ? : copied; |
257 | } | 257 | } |
258 | 258 | ||
259 | |||
260 | static const struct proto_ops rawsock_ops = { | 259 | static const struct proto_ops rawsock_ops = { |
261 | .family = PF_NFC, | 260 | .family = PF_NFC, |
262 | .owner = THIS_MODULE, | 261 | .owner = THIS_MODULE, |