Commit 4bff9a25 authored by Daniele Bellucci's avatar Daniele Bellucci Committed by David S. Miller

[NETFILTER]: Make use of ipt_register_target() return values.

parent eec562d9
...@@ -71,10 +71,7 @@ static struct ipt_target ipt_classify_reg = { ...@@ -71,10 +71,7 @@ static struct ipt_target ipt_classify_reg = {
static int __init init(void) static int __init init(void)
{ {
if (ipt_register_target(&ipt_classify_reg)) return ipt_register_target(&ipt_classify_reg);
return -EINVAL;
return 0;
} }
static void __exit fini(void) static void __exit fini(void)
......
...@@ -91,10 +91,7 @@ static struct ipt_target ipt_dscp_reg = { ...@@ -91,10 +91,7 @@ static struct ipt_target ipt_dscp_reg = {
static int __init init(void) static int __init init(void)
{ {
if (ipt_register_target(&ipt_dscp_reg)) return ipt_register_target(&ipt_dscp_reg);
return -EINVAL;
return 0;
} }
static void __exit fini(void) static void __exit fini(void)
......
...@@ -155,10 +155,7 @@ static struct ipt_target ipt_ecn_reg = { ...@@ -155,10 +155,7 @@ static struct ipt_target ipt_ecn_reg = {
static int __init init(void) static int __init init(void)
{ {
if (ipt_register_target(&ipt_ecn_reg)) return ipt_register_target(&ipt_ecn_reg);
return -EINVAL;
return 0;
} }
static void __exit fini(void) static void __exit fini(void)
......
...@@ -404,10 +404,7 @@ static struct ipt_target ipt_log_reg = { ...@@ -404,10 +404,7 @@ static struct ipt_target ipt_log_reg = {
static int __init init(void) static int __init init(void)
{ {
if (ipt_register_target(&ipt_log_reg)) return ipt_register_target(&ipt_log_reg);
return -EINVAL;
return 0;
} }
static void __exit fini(void) static void __exit fini(void)
......
...@@ -59,10 +59,7 @@ static struct ipt_target ipt_mark_reg = { ...@@ -59,10 +59,7 @@ static struct ipt_target ipt_mark_reg = {
static int __init init(void) static int __init init(void)
{ {
if (ipt_register_target(&ipt_mark_reg)) return ipt_register_target(&ipt_mark_reg);
return -EINVAL;
return 0;
} }
static void __exit fini(void) static void __exit fini(void)
......
...@@ -449,9 +449,7 @@ static struct ipt_target ipt_reject_reg = { ...@@ -449,9 +449,7 @@ static struct ipt_target ipt_reject_reg = {
static int __init init(void) static int __init init(void)
{ {
if (ipt_register_target(&ipt_reject_reg)) return ipt_register_target(&ipt_reject_reg);
return -EINVAL;
return 0;
} }
static void __exit fini(void) static void __exit fini(void)
......
...@@ -84,10 +84,7 @@ static struct ipt_target ipt_tos_reg = { ...@@ -84,10 +84,7 @@ static struct ipt_target ipt_tos_reg = {
static int __init init(void) static int __init init(void)
{ {
if (ipt_register_target(&ipt_tos_reg)) return ipt_register_target(&ipt_tos_reg);
return -EINVAL;
return 0;
} }
static void __exit fini(void) static void __exit fini(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment