batman-adv: Fix spelling mistakes
authorZheng Yongjun <zhengyongjun3@huawei.com>
Wed, 2 Jun 2021 06:56:03 +0000 (14:56 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Wed, 2 Jun 2021 06:46:03 +0000 (08:46 +0200)
Fix some spelling mistakes in comments:
containg  ==> containing
dont  ==> don't
datas  ==> data
brodcast  ==> broadcast

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/hard-interface.c
net/batman-adv/hash.h

index 7dc133cfc3637296471192c347d20d5d7b1c2b92..63d42dcc9324a9d0da055cf504bb56c2d2434cc4 100644 (file)
@@ -395,7 +395,7 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac,
                break;
        case BATADV_CLAIM_TYPE_ANNOUNCE:
                /* announcement frame
-                * set HW SRC to the special mac containg the crc
+                * set HW SRC to the special mac containing the crc
                 */
                ether_addr_copy(hw_src, mac);
                batadv_dbg(BATADV_DBG_BLA, bat_priv,
@@ -1040,7 +1040,7 @@ static int batadv_check_claim_group(struct batadv_priv *bat_priv,
        /* lets see if this originator is in our mesh */
        orig_node = batadv_orig_hash_find(bat_priv, backbone_addr);
 
-       /* dont accept claims from gateways which are not in
+       /* don't accept claims from gateways which are not in
         * the same mesh or group.
         */
        if (!orig_node)
index 4a6a25d551a83b1723e80a349e1a655a2152b0ac..b99f64f483fcd86f987534343b24b1753fe355dc 100644 (file)
@@ -403,7 +403,7 @@ int batadv_hardif_no_broadcast(struct batadv_hard_iface *if_outgoing,
                goto out;
        }
 
-       /* >1 neighbors -> (re)brodcast */
+       /* >1 neighbors -> (re)broadcast */
        if (rcu_dereference(hlist_next_rcu(first)))
                goto out;
 
index 46696759f194e0684d36c2d07c22460d7b4ded32..fb251c385a1bbe7aa4fc83909ee52c4c6189d921 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/stddef.h>
 #include <linux/types.h>
 
-/* callback to a compare function.  should compare 2 element datas for their
+/* callback to a compare function.  should compare 2 element data for their
  * keys
  *
  * Return: true if same and false if not same