summaryrefslogtreecommitdiff
path: root/net/802
diff options
context:
space:
mode:
Diffstat (limited to 'net/802')
-rw-r--r--net/802/garp.c4
-rw-r--r--net/802/mrp.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/802/garp.c b/net/802/garp.c
index ceeb5f5fac02..6f563b6797d9 100644
--- a/net/802/garp.c
+++ b/net/802/garp.c
@@ -547,7 +547,7 @@ static int garp_init_port(struct net_device *dev)
{
struct garp_port *port;
- port = kzalloc_obj(*port, GFP_KERNEL);
+ port = kzalloc_obj(*port);
if (!port)
return -ENOMEM;
rcu_assign_pointer(dev->garp_port, port);
@@ -581,7 +581,7 @@ int garp_init_applicant(struct net_device *dev, struct garp_application *appl)
}
err = -ENOMEM;
- app = kzalloc_obj(*app, GFP_KERNEL);
+ app = kzalloc_obj(*app);
if (!app)
goto err2;
diff --git a/net/802/mrp.c b/net/802/mrp.c
index f65c95d43a4e..ff0e80574e6b 100644
--- a/net/802/mrp.c
+++ b/net/802/mrp.c
@@ -832,7 +832,7 @@ static int mrp_init_port(struct net_device *dev)
{
struct mrp_port *port;
- port = kzalloc_obj(*port, GFP_KERNEL);
+ port = kzalloc_obj(*port);
if (!port)
return -ENOMEM;
rcu_assign_pointer(dev->mrp_port, port);
@@ -866,7 +866,7 @@ int mrp_init_applicant(struct net_device *dev, struct mrp_application *appl)
}
err = -ENOMEM;
- app = kzalloc_obj(*app, GFP_KERNEL);
+ app = kzalloc_obj(*app);
if (!app)
goto err2;