summaryrefslogtreecommitdiff
path: root/drivers/net/hyperv
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hyperv')
-rw-r--r--drivers/net/hyperv/netvsc.c2
-rw-r--r--drivers/net/hyperv/rndis_filter.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index d9fa2fc4c43c..59e95341f9b1 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -129,7 +129,7 @@ static struct netvsc_device *alloc_net_device(void)
{
struct netvsc_device *net_device;
- net_device = kzalloc_obj(struct netvsc_device, GFP_KERNEL);
+ net_device = kzalloc_obj(struct netvsc_device);
if (!net_device)
return NULL;
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
index 2fa77dc21d7e..9b6c44979b4e 100644
--- a/drivers/net/hyperv/rndis_filter.c
+++ b/drivers/net/hyperv/rndis_filter.c
@@ -64,7 +64,7 @@ static struct rndis_device *get_rndis_device(void)
{
struct rndis_device *device;
- device = kzalloc_obj(struct rndis_device, GFP_KERNEL);
+ device = kzalloc_obj(struct rndis_device);
if (!device)
return NULL;
@@ -87,7 +87,7 @@ static struct rndis_request *get_rndis_request(struct rndis_device *dev,
struct rndis_set_request *set;
unsigned long flags;
- request = kzalloc_obj(struct rndis_request, GFP_KERNEL);
+ request = kzalloc_obj(struct rndis_request);
if (!request)
return NULL;