]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
remove useless return statement
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Sep 2016 15:44:20 +0000 (08:44 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Sep 2016 15:44:20 +0000 (08:44 -0700)
Get rid of:
void foo() {
...
return;
}

ip/iptuntap.c
tc/tc_class.c
tc/tc_stab.c

index b5aa0542c1f8f23ee23b95b6614172a4e826d482..11db794f78d048257963b211198c2b32c5ebb709 100644 (file)
@@ -373,7 +373,6 @@ next:
        }
 
        globfree(&globbuf);
-       return;
 }
 
 
index f3864d22f3c4df7732b06021d7d170d7c816d132..1a1f1fa225b40aab80001d6c715cb798ee6e2b35 100644 (file)
@@ -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 <desired QDISC_KIND> help\n");
-       return;
 }
 
 static int tc_class_modify(int cmd, unsigned int flags, int argc, char **argv)
index dc20dd195502dbdb041ea672cf755f38586c568f..1a0a3e3f0fb7aab3e23bf8e1edadff80405a7899 100644 (file)
@@ -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)