Skip to content

Commit 3ff50b7

Browse files
Stephen HemmingerDavid S. Miller
authored andcommitted
[NET]: cleanup extra semicolons
Spring cleaning time... There seems to be a lot of places in the network code that have extra bogus semicolons after conditionals. Most commonly is a bogus semicolon after: switch() { } Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c462238 commit 3ff50b7

47 files changed

Lines changed: 113 additions & 103 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎net/802/tr.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ static int rif_seq_show(struct seq_file *seq, void *v)
554554
if(j==1) {
555555
segment=ntohs(entry->rseg[j-1])>>4;
556556
seq_printf(seq," %03X",segment);
557-
};
557+
}
558+
558559
segment=ntohs(entry->rseg[j])>>4;
559560
brdgnmb=ntohs(entry->rseg[j-1])&0x00f;
560561
seq_printf(seq,"-%01X-%03X",brdgnmb,segment);

‎net/8021q/vlan.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static struct net_device *register_vlan_device(const char *eth_IF_name,
470470
*/
471471
default:
472472
snprintf(name, IFNAMSIZ, "vlan%.4i", VLAN_ID);
473-
};
473+
}
474474

475475
new_dev = alloc_netdev(sizeof(struct vlan_dev_info), name,
476476
vlan_setup);
@@ -685,7 +685,7 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,
685685
break;
686686
}
687687
break;
688-
};
688+
}
689689

690690
out:
691691
return NOTIFY_DONE;
@@ -819,7 +819,7 @@ static int vlan_ioctl_handler(void __user *arg)
819819
printk(VLAN_DBG "%s: Unknown VLAN CMD: %x \n",
820820
__FUNCTION__, args.cmd);
821821
return -EINVAL;
822-
};
822+
}
823823
out:
824824
return err;
825825
}

‎net/8021q/vlan_dev.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int vlan_dev_rebuild_header(struct sk_buff *skb)
6666

6767
memcpy(veth->h_source, dev->dev_addr, ETH_ALEN);
6868
break;
69-
};
69+
}
7070

7171
return 0;
7272
}
@@ -219,7 +219,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev,
219219
break;
220220
default:
221221
break;
222-
};
222+
}
223223

224224
/* Was a VLAN packet, grab the encapsulated protocol, which the layer
225225
* three protocols care about.

‎net/ax25/ax25_ip.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int ax25_rebuild_header(struct sk_buff *skb)
121121
digipeat = route->digipeat;
122122
dev = route->dev;
123123
ip_mode = route->ip_mode;
124-
};
124+
}
125125

126126
if (dev == NULL)
127127
dev = skb->dev;

‎net/bluetooth/hci_core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static int __hci_request(struct hci_dev *hdev, void (*req)(struct hci_dev *hdev,
149149
default:
150150
err = -ETIMEDOUT;
151151
break;
152-
};
152+
}
153153

154154
hdev->req_status = hdev->req_result = 0;
155155

@@ -1388,7 +1388,7 @@ static void hci_rx_task(unsigned long arg)
13881388
case HCI_SCODATA_PKT:
13891389
kfree_skb(skb);
13901390
continue;
1391-
};
1391+
}
13921392
}
13931393

13941394
/* Process frame */

‎net/bluetooth/sco.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static void sco_sock_close(struct sock *sk)
393393
default:
394394
sock_set_flag(sk, SOCK_ZAPPED);
395395
break;
396-
};
396+
}
397397

398398
release_sock(sk);
399399

‎net/core/link_watch.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void rfc2863_policy(struct net_device *dev)
7979
case IF_LINK_MODE_DEFAULT:
8080
default:
8181
break;
82-
};
82+
}
8383

8484
dev->operstate = operstate;
8585

‎net/core/pktgen.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ static int count_trail_chars(const char __user * user_buffer,
786786
break;
787787
default:
788788
goto done;
789-
};
789+
}
790790
}
791791
done:
792792
return i;
@@ -829,7 +829,7 @@ static int strn_len(const char __user * user_buffer, unsigned int maxlen)
829829
break;
830830
default:
831831
break;
832-
};
832+
}
833833
}
834834
done_str:
835835
return i;
@@ -1906,7 +1906,7 @@ static int pktgen_device_event(struct notifier_block *unused,
19061906
case NETDEV_UNREGISTER:
19071907
pktgen_mark_device(dev->name);
19081908
break;
1909-
};
1909+
}
19101910

19111911
return NOTIFY_DONE;
19121912
}

‎net/core/rtnetlink.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static void set_operstate(struct net_device *dev, unsigned char transition)
399399
operstate == IF_OPER_UNKNOWN)
400400
operstate = IF_OPER_DORMANT;
401401
break;
402-
};
402+
}
403403

404404
if (dev->operstate != operstate) {
405405
write_lock_bh(&dev_base_lock);

‎net/core/skbuff.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void kfree_skbmem(struct sk_buff *skb)
304304
if (atomic_dec_and_test(fclone_ref))
305305
kmem_cache_free(skbuff_fclone_cache, other);
306306
break;
307-
};
307+
}
308308
}
309309

310310
/**

0 commit comments

Comments
 (0)