batman-adv: Drop repeated words in comments
authorSven Eckelmann <sven@narfation.org>
Fri, 31 Jul 2020 18:33:00 +0000 (20:33 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 18 Aug 2020 17:39:54 +0000 (19:39 +0200)
checkpatch found various instances of "Possible repeated word" in various
comments.

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/fragmentation.c
net/batman-adv/hard-interface.c
net/batman-adv/multicast.c
net/batman-adv/network-coding.c
net/batman-adv/send.c
net/batman-adv/soft-interface.c

index 91a04ca373dc105a1821449c688d570ba72059ce..5c41cc52bc5388d9db81fc06e4b8d79adc87551b 100644 (file)
@@ -1795,7 +1795,7 @@ batadv_bla_loopdetect_check(struct batadv_priv *bat_priv, struct sk_buff *skb,
 
        ret = queue_work(batadv_event_workqueue, &backbone_gw->report_work);
 
-       /* backbone_gw is unreferenced in the report work function function
+       /* backbone_gw is unreferenced in the report work function
         * if queue_work() call was successful
         */
        if (!ret)
index 9fdbe306815371e2299ac30a91fe07d6d43cc434..9a47ef8b95c43d6bbe60c6223bd37e54749a100b 100644 (file)
@@ -306,7 +306,7 @@ free:
  * set *skb to merged packet; 2) Packet is buffered: Return true and set *skb
  * to NULL; 3) Error: Return false and free skb.
  *
- * Return: true when the packet is merged or buffered, false when skb is not not
+ * Return: true when the packet is merged or buffered, false when skb is not
  * used.
  */
 bool batadv_frag_skb_buffer(struct sk_buff **skb,
index f95be90adaab64e1a41dfb2a950b518f78a5162e..dad99641df2a82d4235ad0bdba16110d8ca75663 100644 (file)
@@ -599,7 +599,7 @@ out:
        /* report to the other components the maximum amount of bytes that
         * batman-adv can send over the wire (without considering the payload
         * overhead). For example, this value is used by TT to compute the
-        * maximum local table table size
+        * maximum local table size
         */
        atomic_set(&bat_priv->packet_size_max, min_mtu);
 
index bdc4a1fba1c6e3dcd580487b26f8a317fa645b82..1622c3f5898fc25676bc4e2d715caee1689d912d 100644 (file)
@@ -207,7 +207,7 @@ static u8 batadv_mcast_mla_rtr_flags_bridge_get(struct batadv_priv *bat_priv,
                return BATADV_MCAST_WANT_NO_RTR4 | BATADV_MCAST_WANT_NO_RTR6;
 
        /* TODO: ask the bridge if a multicast router is present (the bridge
-        * is capable of performing proper RFC4286 multicast multicast router
+        * is capable of performing proper RFC4286 multicast router
         * discovery) instead of searching for a ff02::2 listener here
         */
        ret = br_multicast_list_adjacent(dev, &bridge_mcast_list);
index 48d707850f3edf5fc064662f67f26f8e5bfc96f2..64619b7a3a77951b72ffe51b681245c26a1e887c 100644 (file)
@@ -250,7 +250,7 @@ static void batadv_nc_path_put(struct batadv_nc_path *nc_path)
 /**
  * batadv_nc_packet_free() - frees nc packet
  * @nc_packet: the nc packet to free
- * @dropped: whether the packet is freed because is is dropped
+ * @dropped: whether the packet is freed because is dropped
  */
 static void batadv_nc_packet_free(struct batadv_nc_packet *nc_packet,
                                  bool dropped)
index d267b94800d6311d9bbc3a2b0749a2d7b06ae45c..87017332b5677824d85f06b9eb1abd0ec8dfb896 100644 (file)
@@ -461,7 +461,7 @@ int batadv_send_skb_via_gw(struct batadv_priv *bat_priv, struct sk_buff *skb,
 /**
  * batadv_forw_packet_free() - free a forwarding packet
  * @forw_packet: The packet to free
- * @dropped: whether the packet is freed because is is dropped
+ * @dropped: whether the packet is freed because is dropped
  *
  * This frees a forwarding packet and releases any resources it might
  * have claimed.
index 23833a0ba5e6d953f3cad221870bb1245db827f2..9d3974ba11eda9ff4b59a2d5d9dda70d4a203fd6 100644 (file)
@@ -649,7 +649,7 @@ static void batadv_softif_destroy_vlan(struct batadv_priv *bat_priv,
 /**
  * batadv_interface_add_vid() - ndo_add_vid API implementation
  * @dev: the netdev of the mesh interface
- * @proto: protocol of the the vlan id
+ * @proto: protocol of the vlan id
  * @vid: identifier of the new vlan
  *
  * Set up all the internal structures for handling the new vlan on top of the
@@ -707,7 +707,7 @@ static int batadv_interface_add_vid(struct net_device *dev, __be16 proto,
 /**
  * batadv_interface_kill_vid() - ndo_kill_vid API implementation
  * @dev: the netdev of the mesh interface
- * @proto: protocol of the the vlan id
+ * @proto: protocol of the vlan id
  * @vid: identifier of the deleted vlan
  *
  * Destroy all the internal structures used to handle the vlan identified by vid