提交 899585ad 编写于 作者: A Anna, Suman 提交者: Bjorn Andersson

remoteproc: use variable names for sizeof() operator

Fix the code formatting to use the kernel preferred style
of using the actual variables to determize the size using
the sizeof() operator.
Signed-off-by: NSuman Anna <s-anna@ti.com>
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
上级 56324d7a
...@@ -358,7 +358,7 @@ static int rproc_handle_vdev(struct rproc *rproc, struct fw_rsc_vdev *rsc, ...@@ -358,7 +358,7 @@ static int rproc_handle_vdev(struct rproc *rproc, struct fw_rsc_vdev *rsc,
return -EINVAL; return -EINVAL;
} }
rvdev = kzalloc(sizeof(struct rproc_vdev), GFP_KERNEL); rvdev = kzalloc(sizeof(*rvdev), GFP_KERNEL);
if (!rvdev) if (!rvdev)
return -ENOMEM; return -ENOMEM;
...@@ -1359,7 +1359,7 @@ struct rproc *rproc_alloc(struct device *dev, const char *name, ...@@ -1359,7 +1359,7 @@ struct rproc *rproc_alloc(struct device *dev, const char *name,
*/ */
name_len = strlen(name) + strlen(template) - 2 + 1; name_len = strlen(name) + strlen(template) - 2 + 1;
rproc = kzalloc(sizeof(struct rproc) + len + name_len, GFP_KERNEL); rproc = kzalloc(sizeof(*rproc) + len + name_len, GFP_KERNEL);
if (!rproc) if (!rproc)
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册