net: Remove unnecessary returns from void function()s
This patch removes from net/ (but not any netfilter files) all the unnecessary return; statements that precede the last closing brace of void functions. It does not remove the returns that are immediately preceded by a label as gcc doesn't like that. Done via: $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \ xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }' Signed-off-by:Joe Perches <joe@perches.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/9p/trans_rdma.c 0 additions, 1 deletionnet/9p/trans_rdma.c
- net/atm/br2684.c 0 additions, 1 deletionnet/atm/br2684.c
- net/atm/lec.c 0 additions, 6 deletionsnet/atm/lec.c
- net/atm/mpc.c 0 additions, 32 deletionsnet/atm/mpc.c
- net/atm/mpoa_caches.c 0 additions, 20 deletionsnet/atm/mpoa_caches.c
- net/bluetooth/hci_core.c 0 additions, 2 deletionsnet/bluetooth/hci_core.c
- net/bluetooth/l2cap.c 0 additions, 3 deletionsnet/bluetooth/l2cap.c
- net/bluetooth/rfcomm/tty.c 0 additions, 2 deletionsnet/bluetooth/rfcomm/tty.c
- net/bluetooth/sco.c 0 additions, 1 deletionnet/bluetooth/sco.c
- net/caif/caif_dev.c 0 additions, 1 deletionnet/caif/caif_dev.c
- net/can/bcm.c 0 additions, 2 deletionsnet/can/bcm.c
- net/decnet/dn_dev.c 0 additions, 3 deletionsnet/decnet/dn_dev.c
- net/decnet/dn_route.c 0 additions, 1 deletionnet/decnet/dn_route.c
- net/ipv4/cipso_ipv4.c 0 additions, 2 deletionsnet/ipv4/cipso_ipv4.c
- net/ipv4/fib_trie.c 0 additions, 2 deletionsnet/ipv4/fib_trie.c
- net/ipv4/ip_gre.c 0 additions, 1 deletionnet/ipv4/ip_gre.c
- net/ipv4/ip_options.c 0 additions, 1 deletionnet/ipv4/ip_options.c
- net/ipv4/ipmr.c 0 additions, 1 deletionnet/ipv4/ipmr.c
- net/ipv6/ndisc.c 0 additions, 2 deletionsnet/ipv6/ndisc.c
- net/ipv6/proc.c 0 additions, 1 deletionnet/ipv6/proc.c
Loading
Please register or sign in to comment