@@ -121,7 +121,8 @@ int iwpm_create_mapinfo(struct sockaddr_storage *local_sockaddr,
if (!iwpm_valid_client(nl_client))
return ret;
- map_info = kzalloc(sizeof(struct iwpm_mapping_info), GFP_KERNEL);
+
+ map_info = kzalloc(sizeof(*map_info), GFP_KERNEL);
if (!map_info)
return -ENOMEM;
@@ -298,7 +299,7 @@ struct iwpm_nlmsg_request *iwpm_get_nlmsg_request(__u32 nlmsg_seq,
struct iwpm_nlmsg_request *nlmsg_request = NULL;
unsigned long flags;
- nlmsg_request = kzalloc(sizeof(struct iwpm_nlmsg_request), gfp);
+ nlmsg_request = kzalloc(sizeof(*nlmsg_request), gfp);
if (!nlmsg_request)
return NULL;