mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45: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 ");
|
printf("TARPIT ");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void chaos_tg_save(const void *ip, const struct xt_entry_target *target)
|
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 ");
|
printf("--tarpit ");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct xtables_target chaos_tg_reg = {
|
static struct xtables_target chaos_tg_reg = {
|
||||||
|
@@ -72,7 +72,6 @@ static void xt_chaos_total(const struct xt_chaos_tginfo *info,
|
|||||||
#else
|
#else
|
||||||
destiny->target(skb, in, out, hooknum, destiny, NULL);
|
destiny->target(skb, in, out, hooknum, destiny, NULL);
|
||||||
#endif
|
#endif
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int chaos_tg(struct sk_buff **pskb,
|
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);
|
module_put(xt_delude->me);
|
||||||
if (have_tarpit)
|
if (have_tarpit)
|
||||||
module_put(xt_tarpit->me);
|
module_put(xt_tarpit->me);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(chaos_tg_init);
|
module_init(chaos_tg_init);
|
||||||
|
@@ -251,7 +251,6 @@ static int __init portscan_mt_init(void)
|
|||||||
static void __exit portscan_mt_exit(void)
|
static void __exit portscan_mt_exit(void)
|
||||||
{
|
{
|
||||||
xt_unregister_match(&portscan_mt_reg);
|
xt_unregister_match(&portscan_mt_reg);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(portscan_mt_init);
|
module_init(portscan_mt_init);
|
||||||
|
Reference in New Issue
Block a user