net: Remove unnecessary returns from void function()s
authorJoe Perches <joe@perches.com>
Tue, 18 May 2010 06:08:21 +0000 (23:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 06:23:14 +0000 (23:23 -0700)
commit3fa21e07e6acefa31f974d57fba2b6920a7ebd1a
tree4254644ef2579e9ac96db6ec0535b5e4231fd18e
parentb60b6592baa69c43a5a0f55d6300a7feaab15338
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>
48 files changed:
net/9p/trans_rdma.c
net/atm/br2684.c
net/atm/lec.c
net/atm/mpc.c
net/atm/mpoa_caches.c
net/bluetooth/hci_core.c
net/bluetooth/l2cap.c
net/bluetooth/rfcomm/tty.c
net/bluetooth/sco.c
net/caif/caif_dev.c
net/can/bcm.c
net/decnet/dn_dev.c
net/decnet/dn_route.c
net/ipv4/cipso_ipv4.c
net/ipv4/fib_trie.c
net/ipv4/ip_gre.c
net/ipv4/ip_options.c
net/ipv4/ipmr.c
net/ipv6/ndisc.c
net/ipv6/proc.c
net/ipv6/route.c
net/irda/iriap.c
net/irda/irnet/irnet_irda.c
net/iucv/af_iucv.c
net/mac80211/debugfs.h
net/mac80211/mesh.c
net/mac80211/mesh_hwmp.c
net/netlabel/netlabel_addrlist.h
net/netlabel/netlabel_unlabeled.c
net/sched/cls_flow.c
net/sched/sch_hfsc.c
net/sched/sch_ingress.c
net/sched/sch_mq.c
net/sched/sch_multiq.c
net/sched/sch_prio.c
net/sched/sch_red.c
net/sctp/associola.c
net/sctp/outqueue.c
net/sctp/proc.c
net/sctp/sm_sideeffect.c
net/sctp/ulpqueue.c
net/sunrpc/clnt.c
net/sunrpc/svcsock.c
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c
net/sysctl_net.c
net/wimax/stack.c
net/xfrm/xfrm_policy.c