Skip to content

Commit 46d160e

Browse files
author
Antonio Quartulli
committed
batman-adv: remove useless blank lines before and after brackets
Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
1 parent dec0507 commit 46d160e

8 files changed

Lines changed: 0 additions & 29 deletions

File tree

‎net/batman-adv/bat_iv_ogm.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ static void batadv_iv_ogm_send_to_if(struct batadv_forw_packet *forw_packet,
183183
/* adjust all flags and log packets */
184184
while (batadv_iv_ogm_aggr_packet(buff_pos, forw_packet->packet_len,
185185
batadv_ogm_packet->tt_num_changes)) {
186-
187186
/* we might have aggregated direct link packets with an
188187
* ordinary base packet
189188
*/
@@ -261,7 +260,6 @@ static void batadv_iv_ogm_emit(struct batadv_forw_packet *forw_packet)
261260
*/
262261
if ((directlink && (batadv_ogm_packet->header.ttl == 1)) ||
263262
(forw_packet->own && (forw_packet->if_incoming != primary_if))) {
264-
265263
/* FIXME: what about aggregated packets ? */
266264
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
267265
"%s packet (originator %pM, seqno %u, TTL %d) on interface %s [%pM]\n",
@@ -325,7 +323,6 @@ batadv_iv_ogm_can_aggregate(const struct batadv_ogm_packet *new_bat_ogm_packet,
325323
if (time_before(send_time, forw_packet->send_time) &&
326324
time_after_eq(aggregation_end_time, forw_packet->send_time) &&
327325
(aggregated_bytes <= BATADV_MAX_AGGREGATION_BYTES)) {
328-
329326
/* check aggregation compatibility
330327
* -> direct link packets are broadcasted on
331328
* their interface only
@@ -815,7 +812,6 @@ static int batadv_iv_ogm_calc_tq(struct batadv_orig_node *orig_node,
815812
rcu_read_lock();
816813
hlist_for_each_entry_rcu(tmp_neigh_node, node,
817814
&orig_neigh_node->neigh_list, list) {
818-
819815
if (!batadv_compare_eth(tmp_neigh_node->addr,
820816
orig_neigh_node->orig))
821817
continue;
@@ -949,7 +945,6 @@ batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr,
949945
rcu_read_lock();
950946
hlist_for_each_entry_rcu(tmp_neigh_node, node,
951947
&orig_node->neigh_list, list) {
952-
953948
is_duplicate |= batadv_test_bit(tmp_neigh_node->real_bits,
954949
orig_node->last_real_seqno,
955950
seqno);
@@ -1223,7 +1218,6 @@ static void batadv_iv_ogm_process(const struct ethhdr *ethhdr,
12231218

12241219
/* is single hop (direct) neighbor */
12251220
if (is_single_hop_neigh) {
1226-
12271221
/* mark direct link on incoming interface */
12281222
batadv_iv_ogm_forward(orig_node, ethhdr, batadv_ogm_packet,
12291223
is_single_hop_neigh,

‎net/batman-adv/bridge_loop_avoidance.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ batadv_bla_del_backbone_claims(struct batadv_backbone_gw *backbone_gw)
235235
spin_lock_bh(list_lock);
236236
hlist_for_each_entry_safe(claim, node, node_tmp,
237237
head, hash_entry) {
238-
239238
if (claim->backbone_gw != backbone_gw)
240239
continue;
241240

@@ -338,7 +337,6 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, uint8_t *mac,
338337
"bla_send_claim(): REQUEST of %pM to %pMon vid %d\n",
339338
ethhdr->h_source, ethhdr->h_dest, vid);
340339
break;
341-
342340
}
343341

344342
if (vid != -1)
@@ -539,7 +537,6 @@ static void batadv_bla_send_announce(struct batadv_priv *bat_priv,
539537

540538
batadv_bla_send_claim(bat_priv, mac, backbone_gw->vid,
541539
BATADV_CLAIM_TYPE_ANNOUNCE);
542-
543540
}
544541

545542
/**
@@ -598,7 +595,6 @@ static void batadv_bla_add_claim(struct batadv_priv *bat_priv,
598595

599596
claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
600597
batadv_backbone_gw_free_ref(claim->backbone_gw);
601-
602598
}
603599
/* set (new) backbone gw */
604600
atomic_inc(&backbone_gw->refcount);

‎net/batman-adv/debugfs.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ static ssize_t batadv_log_read(struct file *file, char __user *buf,
164164

165165
buf++;
166166
i++;
167-
168167
}
169168

170169
spin_unlock_bh(&debug_log->lock);

‎net/batman-adv/originator.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ void batadv_originator_free(struct batadv_priv *bat_priv)
184184
spin_lock_bh(list_lock);
185185
hlist_for_each_entry_safe(orig_node, node, node_tmp,
186186
head, hash_entry) {
187-
188187
hlist_del_rcu(node);
189188
batadv_orig_node_free_ref(orig_node);
190189
}
@@ -291,15 +290,13 @@ batadv_purge_orig_neighbors(struct batadv_priv *bat_priv,
291290
/* for all neighbors towards this originator ... */
292291
hlist_for_each_entry_safe(neigh_node, node, node_tmp,
293292
&orig_node->neigh_list, list) {
294-
295293
last_seen = neigh_node->last_seen;
296294
if_incoming = neigh_node->if_incoming;
297295

298296
if ((batadv_has_timed_out(last_seen, BATADV_PURGE_TIMEOUT)) ||
299297
(if_incoming->if_status == BATADV_IF_INACTIVE) ||
300298
(if_incoming->if_status == BATADV_IF_NOT_IN_USE) ||
301299
(if_incoming->if_status == BATADV_IF_TO_BE_REMOVED)) {
302-
303300
if ((if_incoming->if_status == BATADV_IF_INACTIVE) ||
304301
(if_incoming->if_status == BATADV_IF_NOT_IN_USE) ||
305302
(if_incoming->if_status == BATADV_IF_TO_BE_REMOVED))

‎net/batman-adv/routing.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ static void _batadv_update_route(struct batadv_priv *bat_priv,
8080

8181
/* route added */
8282
} else if ((!curr_router) && (neigh_node)) {
83-
8483
batadv_dbg(BATADV_DBG_ROUTES, bat_priv,
8584
"Adding route towards: %pM (via %pM)\n",
8685
orig_node->orig, neigh_node->addr);
@@ -172,7 +171,6 @@ void batadv_bonding_candidate_add(struct batadv_orig_node *orig_node,
172171
*/
173172
hlist_for_each_entry_rcu(tmp_neigh_node, node,
174173
&orig_node->neigh_list, list) {
175-
176174
if (tmp_neigh_node == neigh_node)
177175
continue;
178176

@@ -836,7 +834,6 @@ static int batadv_route_unicast_packet(struct sk_buff *skb,
836834
if (unicast_packet->header.packet_type == BATADV_UNICAST_FRAG &&
837835
batadv_frag_can_reassemble(skb,
838836
neigh_node->if_incoming->net_dev->mtu)) {
839-
840837
ret = batadv_frag_reassemble_skb(skb, bat_priv, &new_skb);
841838

842839
if (ret == NET_RX_DROP)
@@ -1103,7 +1100,6 @@ int batadv_recv_ucast_frag_packet(struct sk_buff *skb,
11031100

11041101
/* packet for me */
11051102
if (batadv_is_my_mac(unicast_packet->dest)) {
1106-
11071103
ret = batadv_frag_reassemble_skb(skb, bat_priv, &new_skb);
11081104

11091105
if (ret == NET_RX_DROP)

‎net/batman-adv/send.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
330330
spin_lock_bh(&bat_priv->forw_bcast_list_lock);
331331
hlist_for_each_entry_safe(forw_packet, tmp_node, safe_tmp_node,
332332
&bat_priv->forw_bcast_list, list) {
333-
334333
/* if purge_outstanding_packets() was called with an argument
335334
* we delete only packets belonging to the given interface
336335
*/
@@ -357,7 +356,6 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
357356
spin_lock_bh(&bat_priv->forw_bat_list_lock);
358357
hlist_for_each_entry_safe(forw_packet, tmp_node, safe_tmp_node,
359358
&bat_priv->forw_bat_list, list) {
360-
361359
/* if purge_outstanding_packets() was called with an argument
362360
* we delete only packets belonging to the given interface
363361
*/

‎net/batman-adv/translation-table.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const void *data)
116116
struct batadv_tt_global_entry,
117117
common);
118118
return tt_global_entry;
119-
120119
}
121120

122121
static void
@@ -256,7 +255,6 @@ static void batadv_tt_global_free(struct batadv_priv *bat_priv,
256255
batadv_hash_remove(bat_priv->tt.global_hash, batadv_compare_tt,
257256
batadv_choose_orig, tt_global->common.addr);
258257
batadv_tt_global_entry_free_ref(tt_global);
259-
260258
}
261259

262260
void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr,
@@ -652,7 +650,6 @@ static void batadv_tt_local_purge(struct batadv_priv *bat_priv)
652650
batadv_tt_local_purge_list(bat_priv, head);
653651
spin_unlock_bh(list_lock);
654652
}
655-
656653
}
657654

658655
static void batadv_tt_local_table_free(struct batadv_priv *bat_priv)
@@ -1079,7 +1076,6 @@ batadv_tt_global_del_orig_list(struct batadv_tt_global_entry *tt_global_entry)
10791076
batadv_tt_orig_list_entry_free_ref(orig_entry);
10801077
}
10811078
spin_unlock_bh(&tt_global_entry->list_lock);
1082-
10831079
}
10841080

10851081
static void
@@ -1855,7 +1851,6 @@ batadv_send_other_tt_response(struct batadv_priv *bat_priv,
18551851
if (!ret)
18561852
kfree_skb(skb);
18571853
return ret;
1858-
18591854
}
18601855

18611856
static bool
@@ -2382,7 +2377,6 @@ static void batadv_tt_local_purge_pending_clients(struct batadv_priv *bat_priv)
23822377
}
23832378
spin_unlock_bh(list_lock);
23842379
}
2385-
23862380
}
23872381

23882382
static int batadv_tt_commit_changes(struct batadv_priv *bat_priv,
@@ -2579,7 +2573,6 @@ bool batadv_tt_local_client_is_roaming(struct batadv_priv *bat_priv,
25792573
batadv_tt_local_entry_free_ref(tt_local_entry);
25802574
out:
25812575
return ret;
2582-
25832576
}
25842577

25852578
bool batadv_tt_add_temporary_global_entry(struct batadv_priv *bat_priv,

‎net/batman-adv/unicast.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ batadv_frag_search_packet(struct list_head *head,
133133
is_head = !!(up->flags & BATADV_UNI_FRAG_HEAD);
134134

135135
list_for_each_entry(tfp, head, list) {
136-
137136
if (!tfp->skb)
138137
continue;
139138

@@ -162,7 +161,6 @@ void batadv_frag_list_free(struct list_head *head)
162161
struct batadv_frag_packet_list_entry *pf, *tmp_pf;
163162

164163
if (!list_empty(head)) {
165-
166164
list_for_each_entry_safe(pf, tmp_pf, head, list) {
167165
kfree_skb(pf->skb);
168166
list_del(&pf->list);

0 commit comments

Comments
 (0)