summaryrefslogtreecommitdiff
path: root/drivers/greybus/es2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/greybus/es2.c')
-rw-r--r--drivers/greybus/es2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/greybus/es2.c b/drivers/greybus/es2.c
index 5acb238dde17..6ae0ac828afa 100644
--- a/drivers/greybus/es2.c
+++ b/drivers/greybus/es2.c
@@ -547,7 +547,7 @@ static int cport_enable(struct gb_host_device *hd, u16 cport_id,
u32 connection_flags;
int ret;
- req = kzalloc_obj(*req, GFP_KERNEL);
+ req = kzalloc_obj(*req);
if (!req)
return -ENOMEM;
@@ -883,7 +883,7 @@ static struct arpc *arpc_alloc(void *payload, u16 size, u8 type)
if (size + sizeof(*rpc->req) > ARPC_OUT_SIZE_MAX)
return NULL;
- rpc = kzalloc_obj(*rpc, GFP_KERNEL);
+ rpc = kzalloc_obj(*rpc);
if (!rpc)
return NULL;
@@ -892,7 +892,7 @@ static struct arpc *arpc_alloc(void *payload, u16 size, u8 type)
if (!rpc->req)
goto err_free_rpc;
- rpc->resp = kzalloc_obj(*rpc->resp, GFP_KERNEL);
+ rpc->resp = kzalloc_obj(*rpc->resp);
if (!rpc->resp)
goto err_free_req;
@@ -1203,7 +1203,7 @@ static int apb_get_cport_count(struct usb_device *udev)
int retval;
__le16 *cport_count;
- cport_count = kzalloc_obj(*cport_count, GFP_KERNEL);
+ cport_count = kzalloc_obj(*cport_count);
if (!cport_count)
return -ENOMEM;