summaryrefslogtreecommitdiff
path: root/net/can
diff options
context:
space:
mode:
Diffstat (limited to 'net/can')
-rw-r--r--net/can/af_can.c2
-rw-r--r--net/can/gw.c2
-rw-r--r--net/can/j1939/main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index 6fa0dd649d0c..e80e516bfde9 100644
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -802,7 +802,7 @@ static int can_pernet_init(struct net *net)
GFP_KERNEL);
if (!net->can.rx_alldev_list)
goto out;
- net->can.pkg_stats = kzalloc_obj(*net->can.pkg_stats, GFP_KERNEL);
+ net->can.pkg_stats = kzalloc_obj(*net->can.pkg_stats);
if (!net->can.pkg_stats)
goto out_free_rx_alldev_list;
net->can.rcv_lists_stats = kzalloc_obj(*net->can.rcv_lists_stats,
diff --git a/net/can/gw.c b/net/can/gw.c
index c6cf4cb72891..8ee4d67a07d3 100644
--- a/net/can/gw.c
+++ b/net/can/gw.c
@@ -1099,7 +1099,7 @@ static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh,
if (r->gwtype != CGW_TYPE_CAN_CAN)
return -EINVAL;
- mod = kmalloc_obj(*mod, GFP_KERNEL);
+ mod = kmalloc_obj(*mod);
if (!mod)
return -ENOMEM;
diff --git a/net/can/j1939/main.c b/net/can/j1939/main.c
index 45b718c680e0..9937c04241bc 100644
--- a/net/can/j1939/main.c
+++ b/net/can/j1939/main.c
@@ -128,7 +128,7 @@ static struct j1939_priv *j1939_priv_create(struct net_device *ndev)
{
struct j1939_priv *priv;
- priv = kzalloc_obj(*priv, GFP_KERNEL);
+ priv = kzalloc_obj(*priv);
if (!priv)
return NULL;