mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
src: remove redundant return statements
This commit is contained in:
@@ -76,7 +76,6 @@ static void chaos_tg_print(const void *ip,
|
||||
printf("TARPIT ");
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static void chaos_tg_save(const void *ip, const struct xt_entry_target *target)
|
||||
@@ -91,7 +90,6 @@ static void chaos_tg_save(const void *ip, const struct xt_entry_target *target)
|
||||
printf("--tarpit ");
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static struct xtables_target chaos_tg_reg = {
|
||||
|
@@ -72,7 +72,6 @@ static void xt_chaos_total(const struct xt_chaos_tginfo *info,
|
||||
#else
|
||||
destiny->target(skb, in, out, hooknum, destiny, NULL);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
static unsigned int chaos_tg(struct sk_buff **pskb,
|
||||
@@ -200,7 +199,6 @@ static void __exit chaos_tg_exit(void)
|
||||
module_put(xt_delude->me);
|
||||
if (have_tarpit)
|
||||
module_put(xt_tarpit->me);
|
||||
return;
|
||||
}
|
||||
|
||||
module_init(chaos_tg_init);
|
||||
|
@@ -251,7 +251,6 @@ static int __init portscan_mt_init(void)
|
||||
static void __exit portscan_mt_exit(void)
|
||||
{
|
||||
xt_unregister_match(&portscan_mt_reg);
|
||||
return;
|
||||
}
|
||||
|
||||
module_init(portscan_mt_init);
|
||||
|
Reference in New Issue
Block a user