nfc: hci: Fix spelling mistakes
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 31 May 2021 02:00:19 +0000 (10:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Jun 2021 05:44:47 +0000 (22:44 -0700)
Fix some spelling mistakes in comments:
occured  ==> occurred
negociate  ==> negotiate

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210531020019.2919799-1-zhengyongjun3@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/nfc/hci/command.c
net/nfc/hci/core.c
net/nfc/hci/llc_shdlc.c

index e02b9befce0bc576021f328acc0dcf7160951f77..3a89bd9b89fc37d022e19e784ceb43f15dc2e84a 100644 (file)
@@ -34,7 +34,7 @@ static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
  * HCI command execution completion callback.
  * err will be a standard linux error (may be converted from HCI response)
  * skb contains the response data and must be disposed, or may be NULL if
- * an error occured
+ * an error occurred
  */
 static void nfc_hci_execute_cb(void *context, struct sk_buff *skb, int err)
 {
index 43811b5219b5b6276663f7d527a24cf964c1665f..3481941be70ba798a908706236cb8f2a38729a92 100644 (file)
@@ -705,7 +705,7 @@ static void hci_transceive_cb(void *context, struct sk_buff *skb, int err)
                /*
                 * TODO: Check RF Error indicator to make sure data is valid.
                 * It seems that HCI cmd can complete without error, but data
-                * can be invalid if an RF error occured? Ignore for now.
+                * can be invalid if an RF error occurred? Ignore for now.
                 */
                if (err == 0)
                        skb_trim(skb, skb->len - 1); /* RF Err ind */
index c0c8fea3a1864cf2e312f8646b1c02092d4b880d..1e3a90049da98118430f778b8628fda31f724bae 100644 (file)
@@ -406,7 +406,7 @@ static void llc_shdlc_rcv_u_frame(struct llc_shdlc *shdlc,
                case SHDLC_NEGOTIATING:
                case SHDLC_CONNECTING:
                        /*
-                        * We sent RSET, but chip wants to negociate or we
+                        * We sent RSET, but chip wants to negotiate or we
                         * got RSET before we managed to send out our.
                         */
                        if (skb->len > 0)