From: Stephen Hemminger Date: Thu, 1 Sep 2016 15:44:20 +0000 (-0700) Subject: remove useless return statement X-Git-Tag: v4.8.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae810982ccd012e8566aca18b73842019806f872;p=thirdparty%2Fiproute2.git remove useless return statement Get rid of: void foo() { ... return; } --- diff --git a/ip/iptuntap.c b/ip/iptuntap.c index b5aa0542c..11db794f7 100644 --- a/ip/iptuntap.c +++ b/ip/iptuntap.c @@ -373,7 +373,6 @@ next: } globfree(&globbuf); - return; } diff --git a/tc/tc_class.c b/tc/tc_class.c index f3864d22f..1a1f1fa22 100644 --- a/tc/tc_class.c +++ b/tc/tc_class.c @@ -52,7 +52,6 @@ static void usage(void) fprintf(stderr, "Where:\n"); fprintf(stderr, "QDISC_KIND := { prio | cbq | etc. }\n"); fprintf(stderr, "OPTIONS := ... try tc class add help\n"); - return; } static int tc_class_modify(int cmd, unsigned int flags, int argc, char **argv) diff --git a/tc/tc_stab.c b/tc/tc_stab.c index dc20dd195..1a0a3e3f0 100644 --- a/tc/tc_stab.c +++ b/tc/tc_stab.c @@ -40,7 +40,6 @@ static void stab_help(void) " linklayer : adapting to a linklayer e.g. atm\n" "Example: ... stab overhead 20 linklayer atm\n"); - return; } int check_size_table_opts(struct tc_sizespec *s)